Skip to content

a11y(contrast): use dark orange token for orange text (website#3 follow-up) - #13

Merged
secsovereign merged 1 commit into
mainfrom
ux/orange-text-token
Nov 19, 2026
Merged

secsovereign merged 1 commit into
mainfrom
ux/orange-text-token

Conversation

@secsovereign

Copy link
Copy Markdown
Member

website#3 fixed button contrast (.btn-primary #111 on orange at 8.22:1, .btn-secondary text #a35400 at 5.49:1) but left brand-orange text (#f7931a) on light fills. Tester’s live recheck at cdcd34e still 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-secondary rule keeps working)

WCAG AA contrast (computed, 4.5:1 required):

Foreground Background Ratio
#a35400 #ffffff 5.49:1
#a35400 #fff8f0 5.21:1
#a35400 #f5f5f5 5.04:1

--bitcoin-orange: #f7931a is unchanged for fills, borders, icons, and decorative bullets.

Selectors

color: var(--orange-text) on orange text only, including the ones Tester flagged:

  • Kickers: .page-kicker, .fund-kicker, .intel-hero__kicker, .gate-kicker, .intel-plan-badge
  • Body / lede links: .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 labels: .gate-track li[data-state="met"] .gate-num / .gate-state
  • Architecture: .layer-type, .architecture-inline-spec-link (hover darkened from #e6820a to #7a3e00, 7.65:1 on #f5f5f5)
  • Also other orange text (taglines, section headings, prices, nav/footer hover text, etc.) so the same failure doesn’t linger off the nine recheck pages

In-body links now use text-decoration: underline. #a35400 vs surrounding --text-secondary (#333) is only 2.30:1, so color alone would fail link-in-text-block after the darkening. Layout and copy are unchanged.

Axe before / after

Local static export of this branch’s parent (cdcd34e, CSS 14021d8157c017b2.css) vs this head (CSS e84e02787e85f98c.css). Playwright + axe-core, rules color-contrast and link-in-text-block, 390 and 1280 px. Counts were the same at both widths.

Page color-contrast before (390 / 1280) after link-in-text-block before after
/ 8 / 8 0 / 0 0 0
/whyblvm/ 18 / 18 0 / 0 0 0
/architecture/ 12 / 12 0 / 0 0 0
/install/ 5 / 5 0 / 0 0 0
/faq/ 2 / 2 0 / 0 0 0
/intelligence/ 2 / 2 0 / 0 0 0
/pricing/ 2 / 2 0 / 0 0 0
/account/ 1 / 1 0 / 0 0 0
/subscribe/?plan=trial 1 / 1 0 / 0 0 0

/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-state items, and the last two .layer-type labels.

npm test (5/5) and scripts/check-public-claims.py (phrases) passed. The fetch-release script was not changed; the local build kept the committed data/install-content.json.

Axe still reports some incomplete (not violation) color-contrast results 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:

  • Run axe color-contrast and link-in-text-block on /, /whyblvm/, /architecture/, /install/, /faq/, /intelligence/, /pricing/, /account/, and /subscribe/?plan=trial at 390 and 1280 px.
  • Expect 0 violations of both rules on each page and width.
  • Confirm the new CSS hash is live (this build used e84e02787e85f98c.css).
  • Buttons from AA contrast: dark text on orange fills, darker orange text (was 2.29:1) #3 should still measure #111 on orange and #a35400 on .btn-secondary.
  • Kickers, body links, gate labels, and .layer-type should compute to #a35400.

@review, can you check it? I’ll merge once it’s green and you’re OK with it.

…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.
@secsovereign
secsovereign merged commit 1282a1a into main Nov 19, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant