Skip to content

Commit a73ef1a

Browse files
fix(mosaic): raise secondary foreground contrast in light mode (#10459)
1 parent 92cdc6a commit a73ef1a

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clerk/mosaic': patch
3+
---
4+
5+
Darken `--cl-color-foreground-secondary` in light mode so secondary text meets WCAG AA contrast on both the default and subtle backgrounds.

‎packages/mosaic/src/tokens.stylex.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const colorDefaults = {
4040
'--cl-color-background-subtle': neutralMix(3, 4.25),
4141

4242
'--cl-color-foreground': neutralMix(79.5, 98),
43-
'--cl-color-foreground-secondary': neutralMix(44.45, 64.25),
43+
'--cl-color-foreground-secondary': neutralMix(50, 64.25),
4444
'--cl-color-foreground-disabled': neutralMix(28.5, 44),
4545

4646
'--cl-color-border': neutralMix(5.5, 8),

0 commit comments

Comments
 (0)