Skip to content

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

Open
wants to merge 6 commits into
base: extended-tokens
Choose a base branch
from

Conversation

rachethecreator
Copy link

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

@rachethecreator rachethecreator self-assigned this Jun 10, 2025
@rachethecreator rachethecreator requested review from a team as code owners June 10, 2025 22:37
Comment on lines 16 to 17
padding: tokens.strokeWidthThick,
margin: `calc(${tokens.strokeWidthThick} * -1)`,
Copy link
Author

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,
Copy link
Author

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)

Copy link

Pull request demo site: URL

Copy link
Contributor

@Mitch-At-Work Mitch-At-Work left a 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

@rachethecreator rachethecreator force-pushed the ryoo/dialog-semantic-tokens branch from 070792f to 24bc454 Compare June 17, 2025 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants