Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .changeset/fuzzy-dryers-join.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
'@leafygreen-ui/tokens': patch
---
Updates icon color tokens in both light and dark modes to improve visual consistency and accessibility.

Dark Mode (darkModeColors.ts)
Updated the InversePrimary variant's default icon color from white to black to match the hover state, ensuring visual consistency across interaction states.

Light Mode (lightModeColors.ts)
Updated the Disabled variant icon colors from gray.base to gray.light1 across all interaction states (Default, Hover, Focus). This provides a lighter disabled appearance that better distinguishes disabled icons from active ones.
2 changes: 1 addition & 1 deletion packages/tokens/src/color/darkModeColors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
type VariantColorRecord,
} from './color.types';

const { black, blue, gray, green, red, white, yellow } = palette;

Check warning on line 10 in packages/tokens/src/color/darkModeColors.ts

View workflow job for this annotation

GitHub Actions / Check lints

'white' is assigned a value but never used. Allowed unused vars must match /^_/u

const darkModeBackgroundColors = {
[Variant.Primary]: {
Expand Down Expand Up @@ -107,7 +107,7 @@
[InteractionState.Focus]: blue.light3,
},
[Variant.InversePrimary]: {
[InteractionState.Default]: white,
[InteractionState.Default]: black,
[InteractionState.Hover]: black,
[InteractionState.Focus]: blue.dark2,
},
Expand Down
6 changes: 3 additions & 3 deletions packages/tokens/src/color/lightModeColors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@ const lightModeIconColors = {
[InteractionState.Focus]: red.base,
},
[Variant.Disabled]: {
[InteractionState.Default]: gray.base,
[InteractionState.Hover]: gray.base,
[InteractionState.Focus]: gray.base,
[InteractionState.Default]: gray.light1,
[InteractionState.Hover]: gray.light1,
[InteractionState.Focus]: gray.light1,
},
} as const satisfies VariantColorRecord;

Expand Down
Loading