Field: Update to use Semantic Tokens - #34804
Merged
Mitch-At-Work merged 6 commits intoJul 16, 2025
Merged
Conversation
Mitch-At-Work
requested changes
Jul 14, 2025
Mitch-At-Work
left a comment
Contributor
There was a problem hiding this comment.
Semantic token usage looks good!
Just a few small minor comments before landing
Mitch-At-Work
force-pushed
the
user/terynkum/field-semantic-tokens
branch
from
July 15, 2025 23:57
d536cfb to
d00896a
Compare
Mitch-At-Work
approved these changes
Jul 16, 2025
Mitch-At-Work
enabled auto-merge (squash)
July 16, 2025 00:55
|
Pull request demo site: URL |
Mitch-At-Work
merged commit Jul 16, 2025
9ca9756
into
microsoft:extended-tokens
10 of 14 checks passed
Mitch-At-Work
added a commit
that referenced
this pull request
Aug 6, 2025
Co-authored-by: terynkum <terynkum@microsoft.com> Co-authored-by: Mitch-At-Work <mifraser@microsoft.com>
Mitch-At-Work
added a commit
that referenced
this pull request
Aug 20, 2025
Co-authored-by: terynkum <terynkum@microsoft.com> Co-authored-by: Mitch-At-Work <mifraser@microsoft.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new
useSemanticFieldStyleshook and integrates it into the Fluent UI library. The changes include defining and exporting the new hook, updating relevant style tokens, and adding the hook to the semantic style hooks configuration. Below is a summary of the most significant changes:New Hook Implementation and Integration
useSemanticFieldStyleshook inField/useSemanticFieldStyles.styles.tsto provide styling forFieldcomponents, including handling various states, orientations, and validation messages.useSemanticFieldStyleshook inField/index.tsand added it to theSEMANTIC_STYLE_HOOKSconfiguration insemanticStyleHooks.ts. [1] [2] [3]useSemanticFieldStyles.Semantic Tokens Updates
Fieldstyling, such as padding, spacing, and color tokens, to support the new hook. [1] [2] [3] [4] [5]Token Mapping and Overrides
Fieldtokens influentLegacyVariants.tsandfluentOverrides.tsto ensure compatibility with both legacy and Fluent 2 design systems. [1] [2] [3] [4]These changes collectively enhance the Fluent UI library by introducing a standardized way to style
Fieldcomponents, improving maintainability and consistency across the framework.