Skip to content

Commit

Permalink
fix(preset): add back legacy token for calcite-ui-focus-color (#8694)
Browse files Browse the repository at this point in the history
**Related Issue:** #8548

## Summary

Resolves issue with missing `--calcite-ui-focus-color`
  • Loading branch information
alisonailea authored and Elijbet committed Feb 15, 2024
1 parent 06ec437 commit 3d8389c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/calcite-components/calcite-preset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,14 +258,17 @@ export default {
"outline-color": "transparent",
},
".focus-normal": {
outline: "2px solid var(--calcite-color-brand-hover, var(--calcite--color-brand))",
outline:
"2px solid var(--calcite-ui-focus-color, var(--calcite-color-brand-hover, var(--calcite--color-brand)))",
},
".focus-outset": {
outline: "2px solid var(--calcite-color-brand)",
outline:
"2px solid var(--calcite-ui-focus-color, var(--calcite-color-brand-hover, var(--calcite--color-brand)))",
"outline-offset": invert("2px", "--calcite-offset-invert-focus"),
},
".focus-inset": {
outline: "2px solid var(--calcite-color-brand)",
outline:
"2px solid var(--calcite-ui-focus-color, var(--calcite-color-brand-hover, var(--calcite--color-brand)))",
"outline-offset": invert("-2px", "--calcite-offset-invert-focus"),
},
".focus-outset-danger": {
Expand Down

0 comments on commit 3d8389c

Please sign in to comment.