Skip to content

fix(CDS-801): bump light fgPositive to green70 for AA contrast - #832

Open
adrienzheng-cb wants to merge 1 commit into
masterfrom
adrien/cds-801-fg-positive-contrast
Open

fix(CDS-801): bump light fgPositive to green70 for AA contrast#832
adrienzheng-cb wants to merge 1 commit into
masterfrom
adrien/cds-801-fg-positive-contrast

Conversation

@adrienzheng-cb

Copy link
Copy Markdown
Contributor

What changed? Why?

Light-mode fgPositive (green60 / #098551) on grey card backgrounds (bgAlternate / #EEF0F3) had a 4.1:1 contrast ratio, below WCAG AA 4.5:1 for normal text. Fixes CDS-801 / A11Y-805.

Per design guidance (Anna): map light fgPositivegreen70 (~5.4:1 on bgAlternate).

Root cause (required for bugfixes)

Default/coinbase themes used lightSpectrum.green60 for fgPositive. That green fails AA on gray10 card surfaces.

Dark fgPositive already clears AA (~6.4:1 on dark bgAlternate), so it is unchanged. High-contrast themes already use green80.

UI changes

Light-mode positive text (fgPositive) is slightly darker green. No intentional dark-mode or high-contrast visual change.

Testing

How has it been tested?

  • Unit tests
  • Interaction tests
  • Pseudo State tests
  • Manual - Web
  • Manual - Android (Emulator / Device)
  • Manual - iOS (Emulator / Device)

Testing instructions

  1. Light theme: render positive text (color="fgPositive") on background="bgAlternate" / grey card.
  2. Confirm contrast meets AA (or spot-check vs #047043 on #EEF0F3).
  3. Dark theme: confirm positive text appearance unchanged.

Change management

type=routine
risk=low
impact=sev5

automerge=false

Made with Cursor

@linear

linear Bot commented Aug 7, 2026

Copy link
Copy Markdown

CDS-801

@cb-heimdall

Copy link
Copy Markdown
Collaborator

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 1
Global minimum 0
Max 1
1
1 if commit is unverified 0
Sum 1
CODEOWNERS 🟡 See below

🟡 CODEOWNERS

Code Owner Status Calculation
ui-systems-eng-team 🟡 0/1
Denominator calculation
Additional CODEOWNERS Requirement
Show calculation
Sum 0
0
From CODEOWNERS 1
Sum 1

@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

cb-ekuersch
cb-ekuersch previously approved these changes Aug 7, 2026
@cb-heimdall

Copy link
Copy Markdown
Collaborator

Review Error for cb-ekuersch @ 2026-08-07 18:55:54 UTC
User failed mfa authentication, either user does not exist or public email is not set on your github profile. \ see go/mfa-help

Light fgPositive on grey card backgrounds (bgAlternate) was 4.1:1.
Map light fgPositive to green70 (~5.4:1). Dark mode already passes.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants