Skip to content

Commit 533bfff

Browse files
committed
fix(ui): preserve list item focus in forced colors
1 parent 13ec717 commit 533bfff

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

.changeset/token-set-2.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,8 @@
33
'@workflowbuilder/sdk': major
44
---
55

6-
The design-token theming surface exposed as `--ax-*` custom properties is removed from `tokens.css` and replaced by generated `--wb-*` properties from the refreshed Figma variables. Consumers who overrode `--ax-*` design tokens must move those overrides to the corresponding `--wb-*` properties; the `--ax-public-*` per-component override surface remains unchanged. The new set includes renamed and re-scaled primitives, semantic tokens per theme, new canvas and shadow (effects) sets, and the refreshed palette (brand `#3969FF`, updated reds/greens/oranges).
6+
The design-token theming surface exposed as `--ax-*` custom properties is removed from `tokens.css` and replaced by generated `--wb-*` properties from the refreshed Figma variables: renamed and re-scaled primitives, semantic tokens per theme, and new canvas and shadow (effects) sets. Consumers who overrode `--ax-*` design tokens must move those overrides to the corresponding `--wb-*` properties.
7+
8+
The `--ax-public-*` per-component override surface changes as well. Public button variables migrate the `gray`, `error`, and `ghost-destructive` families to `secondary`, `critical`, and `ghost-critical`, and their size suffixes move to `-xl`...`-xs`. Input and TextArea replace their `-error` variables with `-critical` variables and add public variables for success, hover, disabled backgrounds, icons, placeholders, field composition, and letter-sized control metrics. Every remaining `--ax-public-*` variable keeps its name and now defaults to the refreshed tokens.
9+
10+
Component visuals pick up the refreshed palette (brand `#3969FF`, updated reds/greens/oranges).

packages/ui/src/shared/styles/list-item.module.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@
4545
var(--wb-shadow-ui-focus-element-blur) var(--ax-public-list-item-outline-size)
4646
var(--ax-public-list-item-outline-color-focus);
4747
background-color: var(--ax-public-list-item-background-color-focus);
48+
49+
@media (forced-colors: active) {
50+
outline: var(--ax-public-list-item-outline-size) solid Highlight;
51+
box-shadow: none;
52+
}
4853
}
4954

5055
/* After the highlight rule: a selected item keeps its selected colors

0 commit comments

Comments
 (0)