A certain category of color tokens share values when they should be different. For example --wpds-color-fg-interactive-brand and --wpds-color-fg-interactive-brand-active map to the exact same value:
|
--wpds-color-fg-interactive-brand: #3858e9; /* Foreground color for interactive elements with brand tone and normal emphasis. */ |
|
--wpds-color-fg-interactive-brand-active: #3858e9; /* Foreground color for interactive elements with brand tone and normal emphasis that are hovered, focused, or active. */ |
So while --wpds-color-fg-interactive-brand-active is used for the hover color applied to Link, there's no visible change when hovering. Storybook.
This issue seems to affect all --wpds-color-fg-interactive-* tokens, and their -active counterparts.
My expectation is that the -active token would map to a slightly darker (or lighter) value, as the bg tokens do:
|
--wpds-color-bg-interactive-brand-strong: #3858e9; /* Background color for interactive elements with brand tone and strong emphasis. */ |
|
--wpds-color-bg-interactive-brand-strong-active: #2e49d9; /* Background color for interactive elements with brand tone and strong emphasis that are hovered, focused, or active. */ |
A certain category of color tokens share values when they should be different. For example
--wpds-color-fg-interactive-brandand--wpds-color-fg-interactive-brand-activemap to the exact same value:gutenberg/packages/theme/src/prebuilt/css/design-tokens.css
Lines 64 to 65 in 32b24bd
So while
--wpds-color-fg-interactive-brand-activeis used for the hover color applied toLink, there's no visible change when hovering. Storybook.This issue seems to affect all
--wpds-color-fg-interactive-*tokens, and their-activecounterparts.My expectation is that the
-activetoken would map to a slightly darker (or lighter) value, as thebgtokens do:gutenberg/packages/theme/src/prebuilt/css/design-tokens.css
Lines 15 to 16 in 32b24bd