-
Notifications
You must be signed in to change notification settings - Fork 26.2k
refactor(devtools): switch default devtools font to material symbols #61281
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
base: main
Are you sure you want to change the base?
Conversation
@@ -99,6 +101,7 @@ export class DevToolsComponent implements OnInit, OnDestroy { | |||
ngOnInit(): void { | |||
this._themeService.initializeThemeWatcher(); | |||
this._browserStyles.initBrowserSpecificStyles(); | |||
this._matIconRegistry.setDefaultFontSetClass('material-symbols-outlined'); |
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.
@AleksanderBodurri Thoughts on moving the content of ngOnInit
to the constructor
and has the inject
only the scope of the constructor ?
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.
Something like this?
constructor() {
inject(ThemeService).initializeThemeWatcher();
inject(BrowserStylesService).initBrowserSpecificStyles();
inject(MatIconRegistry).setDefaultFontSetClass('material-symbols-outlined');
}
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.
Reviewed-for: dev-infra
third_party/fonts.google.com/material-symbols-outlined/BUILD.bazel
Outdated
Show resolved
Hide resolved
82a5660
to
5f6288d
Compare
update from Material Icons to Material Symbols, and use the local font copy instead of Google fonts to avoid version mismatches
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Some of the icons were missing in the final build of the signals graph pr because of version mismatches between Google fonts and our local font copy. I updated to material-symbols-outlined to fix this error and allow us to use new icons like
graph-2
Issue Number: N/A
What is the new behavior?
We now consistently use material-symbols-outlined without downloading anything from Google fonts
Does this PR introduce a breaking change?
Other information