-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
(web-components) create recipes and update component styles to leverage tokens #18226
(web-components) create recipes and update component styles to leverage tokens #18226
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 660752e:
|
.button:active { | ||
color: ${neutralForegroundActiveBehavior.var}; | ||
color: ${neutralForegroundRest}; |
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.
Was this supposed to change from active to rest?
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.
@EisenbergEffect Per @nicholasrice there isn't really a difference between rest and hover, active states. This is intentional unless there is an update where these should resolve and return different values.
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.
Yea I'd defer to @bheston on this, and on whether we actually want stateful neutralForeground colors. We have them today but they all resolve to the same color, so I only added the 'rest' thinking we could expand in the future if necessary.
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.
I think this is okay for now, but if we do find a need where these wouldn't resolve to the same color we can add/update. Right now it seems like a fair amount of overhead to have multiple recipes that resolve to the same thing. I'm hopeful that we can take this as a follow-up if needed now, or we can add in the future as a feature.
…ge tokens (#18226) * add design tokens * update accordion and accordiioin item to use tokens * update badge with tokens * update breadcrumb and breadcrumb item to use tokens * add button tokens and add elevated corner radius token * update card with elevated corner radius token * update checkbox to use tokens * update combobox to use tokens * update data grid to use tokens * update dialog to use tokens * update divider to use tokens * update flipper to use tokens * update listbox and listbox option to use tokens * update menu and menu item to use tokens * update number field to use tokens * update progress and progress ring to use tokens * update radio and radio group to use tokens * update select styles to use tokens * update skeleton to use tokens * update slider and slider label to use tokens * update button pattern to use tokens * update base button styles to use tokens * update input fill state styles * update switch to use tokens * update tabs to use tokens * update text area to use tokens * update text field to use tokens * add neutral contrast fill recipe and algo * update tooltip to leverage tokens * update tree view to use tokens * update API report * update default luminance to light mode * update outlineWidth tokens * update storybook * update default token values and register fluent name * fix eslint and update to use findResponsibleContainer * Change files * disable disallowedChangeTypes for beachball major versioning * fix broken stories
…ge tokens (#18226) * add design tokens * update accordion and accordiioin item to use tokens * update badge with tokens * update breadcrumb and breadcrumb item to use tokens * add button tokens and add elevated corner radius token * update card with elevated corner radius token * update checkbox to use tokens * update combobox to use tokens * update data grid to use tokens * update dialog to use tokens * update divider to use tokens * update flipper to use tokens * update listbox and listbox option to use tokens * update menu and menu item to use tokens * update number field to use tokens * update progress and progress ring to use tokens * update radio and radio group to use tokens * update select styles to use tokens * update skeleton to use tokens * update slider and slider label to use tokens * update button pattern to use tokens * update base button styles to use tokens * update input fill state styles * update switch to use tokens * update tabs to use tokens * update text area to use tokens * update text field to use tokens * add neutral contrast fill recipe and algo * update tooltip to leverage tokens * update tree view to use tokens * update API report * update default luminance to light mode * update outlineWidth tokens * update storybook * update default token values and register fluent name * fix eslint and update to use findResponsibleContainer * Change files * disable disallowedChangeTypes for beachball major versioning * fix broken stories
…ge tokens (#18226) * add design tokens * update accordion and accordiioin item to use tokens * update badge with tokens * update breadcrumb and breadcrumb item to use tokens * add button tokens and add elevated corner radius token * update card with elevated corner radius token * update checkbox to use tokens * update combobox to use tokens * update data grid to use tokens * update dialog to use tokens * update divider to use tokens * update flipper to use tokens * update listbox and listbox option to use tokens * update menu and menu item to use tokens * update number field to use tokens * update progress and progress ring to use tokens * update radio and radio group to use tokens * update select styles to use tokens * update skeleton to use tokens * update slider and slider label to use tokens * update button pattern to use tokens * update base button styles to use tokens * update input fill state styles * update switch to use tokens * update tabs to use tokens * update text area to use tokens * update text field to use tokens * add neutral contrast fill recipe and algo * update tooltip to leverage tokens * update tree view to use tokens * update API report * update default luminance to light mode * update outlineWidth tokens * update storybook * update default token values and register fluent name * fix eslint and update to use findResponsibleContainer * Change files * disable disallowedChangeTypes for beachball major versioning * fix broken stories
…ge tokens (#18226) * add design tokens * update accordion and accordiioin item to use tokens * update badge with tokens * update breadcrumb and breadcrumb item to use tokens * add button tokens and add elevated corner radius token * update card with elevated corner radius token * update checkbox to use tokens * update combobox to use tokens * update data grid to use tokens * update dialog to use tokens * update divider to use tokens * update flipper to use tokens * update listbox and listbox option to use tokens * update menu and menu item to use tokens * update number field to use tokens * update progress and progress ring to use tokens * update radio and radio group to use tokens * update select styles to use tokens * update skeleton to use tokens * update slider and slider label to use tokens * update button pattern to use tokens * update base button styles to use tokens * update input fill state styles * update switch to use tokens * update tabs to use tokens * update text area to use tokens * update text field to use tokens * add neutral contrast fill recipe and algo * update tooltip to leverage tokens * update tree view to use tokens * update API report * update default luminance to light mode * update outlineWidth tokens * update storybook * update default token values and register fluent name * fix eslint and update to use findResponsibleContainer * Change files * disable disallowedChangeTypes for beachball major versioning * fix broken stories
…ge tokens (#18226) * add design tokens * update accordion and accordiioin item to use tokens * update badge with tokens * update breadcrumb and breadcrumb item to use tokens * add button tokens and add elevated corner radius token * update card with elevated corner radius token * update checkbox to use tokens * update combobox to use tokens * update data grid to use tokens * update dialog to use tokens * update divider to use tokens * update flipper to use tokens * update listbox and listbox option to use tokens * update menu and menu item to use tokens * update number field to use tokens * update progress and progress ring to use tokens * update radio and radio group to use tokens * update select styles to use tokens * update skeleton to use tokens * update slider and slider label to use tokens * update button pattern to use tokens * update base button styles to use tokens * update input fill state styles * update switch to use tokens * update tabs to use tokens * update text area to use tokens * update text field to use tokens * add neutral contrast fill recipe and algo * update tooltip to leverage tokens * update tree view to use tokens * update API report * update default luminance to light mode * update outlineWidth tokens * update storybook * update default token values and register fluent name * fix eslint and update to use findResponsibleContainer * Change files * disable disallowedChangeTypes for beachball major versioning * fix broken stories
…ge tokens (microsoft#18226) * add design tokens * update accordion and accordiioin item to use tokens * update badge with tokens * update breadcrumb and breadcrumb item to use tokens * add button tokens and add elevated corner radius token * update card with elevated corner radius token * update checkbox to use tokens * update combobox to use tokens * update data grid to use tokens * update dialog to use tokens * update divider to use tokens * update flipper to use tokens * update listbox and listbox option to use tokens * update menu and menu item to use tokens * update number field to use tokens * update progress and progress ring to use tokens * update radio and radio group to use tokens * update select styles to use tokens * update skeleton to use tokens * update slider and slider label to use tokens * update button pattern to use tokens * update base button styles to use tokens * update input fill state styles * update switch to use tokens * update tabs to use tokens * update text area to use tokens * update text field to use tokens * add neutral contrast fill recipe and algo * update tooltip to leverage tokens * update tree view to use tokens * update API report * update default luminance to light mode * update outlineWidth tokens * update storybook * update default token values and register fluent name * fix eslint and update to use findResponsibleContainer * Change files * disable disallowedChangeTypes for beachball major versioning * fix broken stories
Pull request checklist
$ yarn change
Description of changes
This PR creates and applies initial tokens and values to the Fluent UI implementation
Focus areas to test
(optional)