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) Added support for Segoe UI Variable font with variant configurations #22079

Merged
merged 5 commits into from
May 5, 2022

Conversation

bheston
Copy link
Contributor

@bheston bheston commented Mar 11, 2022

Added support for Segoe UI Variable font with variant configurations
Added type ramp helpers to conveniently and consistently apply all necessary font attributes

Will remove font weight slider from Storybook page before merge.

Current Behavior

Uses "Segoe UI" non-variable font

New Behavior

Uses "Segoe UI Variable" by default if registered for the app/page.
Includes variable font variant settings based on font size.

Edge

Edge

Firefox

Firefox

Safari

Safari

Related Issue(s)

Fixes #22078 #21524

@codesandbox-ci
Copy link

codesandbox-ci bot commented Mar 11, 2022

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 65a8c54:

Sandbox Source
@fluentui/react 8 starter Configuration
@fluentui/react-components 9 starter Configuration

@fabricteam
Copy link
Collaborator

fabricteam commented Mar 11, 2022

📊 Bundle size report

🤖 This report was generated against 8f44d809d2d56a5ffe274fbb479f38fafec1eb7a

@size-auditor
Copy link

size-auditor bot commented Mar 11, 2022

Asset size changes

Size Auditor did not detect a change in bundle size for any component!

Baseline commit: 8f44d809d2d56a5ffe274fbb479f38fafec1eb7a (build)

@bheston
Copy link
Contributor Author

bheston commented Mar 18, 2022

In testing, there are some extraneous font attributes that could be removed, but I'll leave that for a cleanup pass. All components correctly use the token values for all visible type I saw in the samples.

@andrefcdias andrefcdias removed their assignment Mar 24, 2022
Added type ramp helpes to conveniently and consistently apply all necessary font attributes.
@bheston bheston merged commit b60bcd3 into microsoft:master May 5, 2022
@bheston bheston deleted the type-ramp-font-by-size branch May 5, 2022 21:57
marwan38 pushed a commit to marwan38/fluentui that referenced this pull request Jun 13, 2022
…t configurations (microsoft#22079)

Added support for Segoe UI Variable font with variant configurations
Added type ramp helpers to conveniently and consistently apply all necessary font attributes
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.

Update to Segoe UI Variable font with variant cofigurations
6 participants