Skip to content

Semantic-Tokens: React-Link #34218

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 3 commits into
base: extended-tokens
Choose a base branch
from

Conversation

Mitch-At-Work
Copy link
Contributor

Updates React-link to use semantic tokens
To be landed after #34217
Extended tokens branch will be PR'd against master to validate via bundle size tool.

Previous Behavior

React-link used existing fluentui/tokens set

New Behavior

React-link now uses fluentui/semantic-tokens set

Copy link

github-actions bot commented Apr 9, 2025

Pull request demo site: URL

},
},

// Semantic-tokens does not include inverted tokens, use existing tokens for now.
inverted: {
color: tokens.colorBrandForegroundInverted,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wondering if we should bring this to the group to figure out what we want our stance on things like this to be. Should it be handled through theme or do we need explicit semantic tokens here as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Current stance is that inverted tokens should be avoided in semantic to avoid unnecessary complexity, and that a local variant theme or style override (optionally using custom style hooks) should be localized to the intended component (currently inverted tokens are only used in link and toast headers)

@Mitch-At-Work Mitch-At-Work force-pushed the user/mifraser/link-semantic-tokens branch from 43a6cef to e929366 Compare April 14, 2025 17:01
@Mitch-At-Work Mitch-At-Work marked this pull request as ready for review April 15, 2025 16:27
@Mitch-At-Work Mitch-At-Work requested a review from a team as a code owner April 15, 2025 16:27
@tudorpopams tudorpopams requested a review from mainframev April 16, 2025 12:03
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.

3 participants