8000 refactor(devtools): switch default devtools font to material symbols by milomg · Pull Request #61281 · angular/angular · GitHub
[go: up one dir, main page]

Skip to content

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

milomg
Copy link
Contributor
@milomg milomg commented May 12, 2025

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • angular.dev application / infrastructure changes
  • Other... Please describe:

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?

  • Yes
  • No

Other information

@pullapprove pullapprove bot requested review from devversion and mgechev May 12, 2025 17:42
@ngbot ngbot bot added this to the Backlog milestone May 12, 2025
@JeanMeche JeanMeche requested review from dgp1130 and AleksanderBodurri and removed request for mgechev and devversion May 12, 2025 22:45
@pullapprove pullapprove bot requested a review from devversion May 12, 2025 22:45
@@ -99,6 +101,7 @@ export class DevToolsComponent implements OnInit, OnDestroy {
ngOnInit(): void {
this._themeService.initializeThemeWatcher();
this._browserStyles.initBrowserSpecificStyles();
this._matIconRegistry.setDefaultFontSetClass('material-symbols-outlined');
Copy link
Member

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 ?

Copy link
Member

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');
}

Copy link
Member
@devversion devversion left a 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

@milomg milomg force-pushed the material-symbols branch 2 times, most recently from 82a5660 to 5f6288d Compare May 15, 2025 20:30
update from Material Icons to Material Symbols, and use the local
font copy instead of Google fonts to avoid version mismatches
@milomg milomg force-pushed the material-symbols branch from 5f6288d to 7a19c54 Compare May 15, 2025 20:50
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.

4 participants
0