Repository navigation
a11y(contrast): use dark orange token for orange text (website#3 follow-up) - #13
Merged
Merged
Conversation
…ow-up) Apply --orange-text (#a35400) to kickers, body links, gate labels, and other orange text so contrast is 5.49:1 / 5.21:1 / 5.04:1 on #fff / #fff8f0 / #f5f5f5. Brand orange stays on fills, borders, and icons. Underline in-body links so they stay distinguishable from #333 text.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
website#3 fixed button contrast (
.btn-primary#111on orange at 8.22:1,.btn-secondarytext#a35400at 5.49:1) but left brand-orange text (#f7931a) on light fills. Tester’s live recheck atcdcd34estill failed color-contrast on kickers, in-body links, gate labels, and architecture layer types.Token
Reuse and name the #3 text token:
--orange-text: #a35400--orange-text-on-light: var(--orange-text)(existing.btn-secondaryrule keeps working)WCAG AA contrast (computed, 4.5:1 required):
#a35400#ffffff#a35400#fff8f0#a35400#f5f5f5--bitcoin-orange: #f7931ais unchanged for fills, borders, icons, and decorative bullets.Selectors
color: var(--orange-text)on orange text only, including the ones Tester flagged:.page-kicker,.fund-kicker,.intel-hero__kicker,.gate-kicker,.intel-plan-badge.page-lede a,.fund-lede a,.home-pair .intel-hero__facts a,.hero-lead a,.platform-note a,.release-note a, and the same pattern on other in-copy links.gate-track li[data-state="met"] .gate-num/.gate-state.layer-type,.architecture-inline-spec-link(hover darkened from#e6820ato#7a3e00, 7.65:1 on#f5f5f5)In-body links now use
text-decoration: underline.#a35400vs surrounding--text-secondary(#333) is only 2.30:1, so color alone would faillink-in-text-blockafter the darkening. Layout and copy are unchanged.Axe before / after
Local static export of this branch’s parent (
cdcd34e, CSS14021d8157c017b2.css) vs this head (CSSe84e02787e85f98c.css). Playwright + axe-core, rulescolor-contrastandlink-in-text-block, 390 and 1280 px. Counts were the same at both widths.//whyblvm//architecture//install//faq//intelligence//pricing//account//subscribe/?plan=trial/whyblvm/and/architecture/are higher than the live table (10 / 10) because that recheck script sliced violation nodes at 10. The extra nodes are the same selectors: more cleared.gate-num/.gate-stateitems, and the last two.layer-typelabels.npm test(5/5) andscripts/check-public-claims.py(phrases) passed. The fetch-release script was not changed; the local build kept the committeddata/install-content.json.Axe still reports some incomplete (not violation)
color-contrastresults that were already present: sticky nav items “partially obscured,” the green architecture layer’s gradient background, and a short.layer-number. No remaining orange-text violations.Live recheck plan (@tester)
After the Pages deploy for this merge:
color-contrastandlink-in-text-blockon/,/whyblvm/,/architecture/,/install/,/faq/,/intelligence/,/pricing/,/account/, and/subscribe/?plan=trialat 390 and 1280 px.e84e02787e85f98c.css).#111on orange and#a35400on.btn-secondary..layer-typeshould compute to#a35400.@review, can you check it? I’ll merge once it’s green and you’re OK with it.