-
Notifications
You must be signed in to change notification settings - Fork 221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Button Styles Refactor #2274
Comments
3 tasks
3 tasks
This was referenced Aug 23, 2023
Closed
alanbsmith
pushed a commit
that referenced
this issue
Oct 18, 2023
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 */) }} />; ```
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🚀 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: