Skip to content
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

Conversation

chrisdholt
Copy link
Member

Pull request checklist

  • Addresses an existing issue: Fixes #0000
  • Include a change request file using $ yarn change

Description of changes

This PR creates and applies initial tokens and values to the Fluent UI implementation

Focus areas to test

(optional)

@chrisdholt chrisdholt self-assigned this May 17, 2021
@chrisdholt chrisdholt changed the title Users/chhol/add design tokens v next (web-components) create recipes and update component styles to leverage tokens May 17, 2021
@codesandbox-ci
Copy link

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:

Sandbox Source
Fluent UI Button Configuration
codesandbox-react-template Configuration
codesandbox-react-northstar-template Configuration

@chrisdholt chrisdholt requested a review from a team as a code owner May 17, 2021 23:52
.button:active {
color: ${neutralForegroundActiveBehavior.var};
color: ${neutralForegroundRest};
Copy link
Contributor

@EisenbergEffect EisenbergEffect May 17, 2021

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?

Copy link
Member Author

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.

Copy link
Contributor

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.

Copy link
Member Author

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.

packages/web-components/src/design-tokens.ts Outdated Show resolved Hide resolved
@chrisdholt chrisdholt merged commit 5d2e358 into microsoft:features/web-components-vNext May 18, 2021
@chrisdholt chrisdholt deleted the users/chhol/add-design-tokens-vNext branch May 18, 2021 02:23
chrisdholt added a commit that referenced this pull request May 18, 2021
…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
chrisdholt added a commit that referenced this pull request May 18, 2021
…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
chrisdholt added a commit that referenced this pull request Jun 8, 2021
…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
chrisdholt added a commit that referenced this pull request Jul 2, 2021
…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
chrisdholt added a commit that referenced this pull request Jul 2, 2021
…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
PeterDraex pushed a commit to PeterDraex/fluentui that referenced this pull request Aug 6, 2021
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants