-
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
fix: Remove action tokens from CanvasProvider to allow cascading #3125
fix: Remove action tokens from CanvasProvider to allow cascading #3125
Conversation
Workday/canvas-kit
|
Project |
Workday/canvas-kit
|
Branch Review |
mc-remove-action-token
|
Run status |
|
Run duration | 02m 49s |
Commit |
|
Committer | Manuel Carrera |
View all properties for this run ↗︎ |
Test results | |
---|---|
|
0
|
|
0
|
|
21
|
|
0
|
|
929
|
View all changes introduced in this branch ↗︎ |
UI Coverage
21.28%
|
|
---|---|
|
1522
|
|
409
|
Accessibility
99.17%
|
|
---|---|
|
6 critical
5 serious
0 moderate
2 minor
|
|
162
|
if (color === 'common') { | ||
(['common', 'primary', 'error', 'alert', 'success', 'neutral'] as const).forEach(color => { | ||
if (color === 'common') { | ||
// @ts-ignore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is TS complaining about here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like a Prettier reformat. 'action'
was removed from the array and that shortened the line enough.
Summary
Fixes: #3121
Release Category
Theming
Release Note
The
CanvasProvider
created a cascading barrier for our brand tokens. In the case wherebrand.action.**
tokens are defined at the root level, say:root
in a a CSS file, we want those tokens to cascade through theCanvasProvider
down to ourPrimaryButton
's. To allow this, we've removed them from theCanvasProvider
andvariables.css
.@workday/[email protected]
removed--cnvs-brand-action-**
tokens from ourvariables.css
to ensure proper cascading of this token to theme ourPrimaryButton
's.CanvasProvider
has removed defaultingbrand.action.**
for theming and is longer a valid theme property onCanvasTheme
type.--cnvs-brand-action-**
token, you must upgrade to the latest version of Canvas Kitv12
and whomever is bootstrapping thevariables.css
must upgrade@workday/canvas-tokens-web
to@2.1.1
to ensure correct theming.Checklist
ready for review
has been added to PRFor the Reviewer
Where Should the Reviewer Start?
Areas for Feedback? (optional)
Testing Manually
Screenshots or GIFs (if applicable)
Thank You Gif (optional)