[Tokens] Implement a --calcite-color-focus
global variable across the design system
#10510
Labels
4 - verified
Issues that have been released and confirmed resolved.
calcite-components
Issues specific to the @esri/calcite-components package.
design-tokens
Issues requiring design tokens.
docs
Issues relating to documentation updates only.
enhancement
Issues tied to a new feature or request.
estimate - 3
A day or two of work, likely requires updates to tests.
has workaround
Issues have a workaround available in the meantime.
impact - p3 - not time sensitive
User set priority impact status of p3 - not time sensitive
p - medium
Issue is non core or affecting less that 60% of people using the library
Milestone
Check existing issues
Description
Provide a global token/CSS variable that enables designers and developers to set the focus color, which could be named
--calcite-color-focus
.The above is currently achievable via the deprecated
--calcite-ui-focus-color
CSS variable, but its usage doesn't apply to the use case, Calcite should instead opt to provide support for focus and brand color variables.Workaround example with
--calcite-ui-focus-color
(Note: this is a deprecated CSS variable): https://codepen.io/geospatialem/pen/poMNgbOAcceptance Criteria
--calcite-color-focus
token that allows customization of the focus in apps.Relevant Info
No response
Which Component
Across components
Example Use Case
Allow developers to use a global
--calcite-color-focus
token that allows customization of the focus in apps. For instance, support Button's focus color to match button color when kind is danger.Priority impact
impact - p3 - not time sensitive
Calcite package
Esri team
N/A
The text was updated successfully, but these errors were encountered: