You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A button style re-factor is needed in conjunction with the new cs prop that is being created. We will also need to update the Primary, Secondary, Tertiary, and Delete buttons (along with their inverses) to use the new system level tokens via CSS variables from the CanvasProvider.
Acceptance Criteria:
All Canvas button variants and their inverses are tied to CSS variables
Update the v10 upgrade guide
Motivation
This will utilize the new cs prop and we now have access to new css properties we did not have when button was re-factored prior.
The text was updated successfully, but these errors were encountered:
Style refactor for buttons to work with new theming, branding, tokens, createStyles utility and `cs` prop.
Fixes: #2274
We want to more easily apply theming to Buttons and the styles need to be refactored to more easily apply those themed styles with new tokens.
[category:Components]
### BREAKING CHANGES
- We refactored how we styled Buttons to use our `createStyles` utility function. We don't anticipate
this as a breaking change but, there may be slight changes to visual test.
- Icons will no longer be "filled" on toggle. This decision was made to not have the existing icon
look different in the toggled state from default state.
- `PrimaryButton`: On the `inverse` variant, the focus ring is now consistent with the default variant of `PrimaryButton`. This will visually change the `inverse` variant to have a larger appearance when focused.
- `colors` will no longer support the `focusRing` option:
```tsx
import {focusRing} from '@workday/canvas-kit-react/common';
// before
<PrimaryButton
colors={{
// other colors
focus: {
// other colors
focusRing: focusRing(/* options */)
}
}}
/>
// after
<PrimaryButton
colors={{
// other colors
focus: {
// other colors
}
}}
css={{
':focus-visible': focusRing(/* options */)
}}
/>;
```
🚀 Feature Proposal
A button style re-factor is needed in conjunction with the new
cs
prop that is being created. We will also need to update the Primary, Secondary, Tertiary, and Delete buttons (along with their inverses) to use the new system level tokens via CSS variables from the CanvasProvider.Acceptance Criteria:
Motivation
This will utilize the new
cs
prop and we now have access to new css properties we did not have when button was re-factored prior.The text was updated successfully, but these errors were encountered: