-
Notifications
You must be signed in to change notification settings - Fork 5k
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
perf: finish getting rid of uses of the Roboto font #26552
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #26552 +/- ##
========================================
Coverage 70.09% 70.09%
========================================
Files 1413 1413
Lines 49255 49256 +1
Branches 13768 13768
========================================
+ Hits 34524 34525 +1
Misses 14731 14731 ☔ View full report in Codecov by Sentry. |
Builds ready [18fe552]
Page Load Metrics (75 ± 11 ms)
Bundle size diffs
|
@@ -207,11 +207,6 @@ | |||
&__bold { | |||
font-weight: bold; | |||
} | |||
|
|||
&__tilde { |
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.
I couldn't find any use of this class anywhere in our compiled code.
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.
|
Builds ready [9aac394]
Page Load Metrics (73 ± 8 ms)
Bundle size diffs
|
Missing release label release-12.5.0 on PR. Adding release label release-12.5.0 on PR and removing other release labels(release-12.6.0), as PR was added to branch 12.5.0 when release was cut. |
Description
We use two custom fonts in our typography CSS: Euclid Circular B and Roboto.
Roboto is a fallback font, but since both are custom fonts Roboto will never be activated by our default typography. It can be removed.
Roboto is only used in one other place in our CSS, but the selector looks to be not used anymore.
Lastly, Material UI uses Roboto by default for input elements and their labels. This PR updates our use of it to use "Euclid Circular B" and our usual fall back fonts. I don't particularly like the implementation (setting
fontFamily
as a string constant in JS), but I'm not sure how to do it any better (cc @georgewrmarshall ).It saves about 0-2ms from the load time (compared to
popup-defer-scripts
branch), so it's not substantial by any stretch. It does save 1.4 megabytes, about 6%, from the dist zip (compared topopup-defer-scripts
branch), which seems worthwhile.Fixes: #26589