-
Notifications
You must be signed in to change notification settings - Fork 2.8k
update dialog to use semantic tokens #34624
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
base: extended-tokens
Are you sure you want to change the base?
update dialog to use semantic tokens #34624
Conversation
padding: tokens.strokeWidthThick, | ||
margin: `calc(${tokens.strokeWidthThick} * -1)`, |
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.
First gap noted in Loop doc
See designs here (no padding for content slot)
@@ -12,9 +13,10 @@ export const dialogBodyClassNames: SlotClassNames<DialogBodySlots> = { | |||
*/ | |||
const useResetStyles = makeResetStyles({ | |||
overflow: 'unset', | |||
gap: DIALOG_GAP, | |||
rowGap: semanticTokens._ctrlDialogGapBetweenContentMedium, |
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.
Second gap noted in Loop doc
See designs here (24px gap between the header, content, and footer rows within Dialog body)
Pull request demo site: URL |
packages/react-components/react-dialog/library/src/contexts/constants.ts
Outdated
Show resolved
Hide resolved
packages/react-components/react-dialog/library/src/contexts/index.ts
Outdated
Show resolved
Hide resolved
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.
Looks good, let's just add back in the previous token exports so that we don't make any non-local changes for now
27c0d1a
to
322668c
Compare
070792f
to
24bc454
Compare
Update to semantic tokens where applicable for react-dialog
Add fallback values to fluentOverrides
Gaps noted here
Kumo implementation here
Previous Behavior
Used fluentui/tokens
New Behavior
Uses fluentui/semantic-tokens if a replacement exists