-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
feat(material icon): Support for Material Symbols #24845
Comments
I don't know how you want to simplify, but at this time, you can do that : |
Tested on angular 13 Material symbols work flawlessly Need to add this in index.html
And Tip:
Add this in AppModule so all mat-icons will have this class |
note - if applying @dvalley56's solution, you might run into the
where this:
still works fine.
causes the A safer solution might be to only replace the
which keeps the |
This comment was marked as resolved.
This comment was marked as resolved.
There now is an NPM package availabe through which you can easily use the new set of material symbols from Google. |
Thank you for sharing, @ikeen0807 . @mark-langer, does material-symbols work for your use-case? -Zach |
Another way to do this besides what @mmanista-bynd suggested is doing it via Provider. This way it runs earlier and you can also save it (the provider) as a constant in a library or anywhere to be added to your app.config.ts (newer Angular versions) or anywhere where you can add providers (e.g. main.ts in newer or older Angular versions): {
provide: APP_INITIALIZER,
multi: true,
useFactory: (iconRegistry: MatIconRegistry) => () => {
const defaultFontSetClasses = iconRegistry.getDefaultFontSetClass();
const outlinedFontSetClasses = defaultFontSetClasses
.filter((fontSetClass) => fontSetClass !== 'material-icons')
.concat(['material-symbols-outlined']);
iconRegistry.setDefaultFontSetClass(...outlinedFontSetClasses);
},
deps: [MatIconRegistry]
} |
with this: in my HTML it seems that im unable to get filled icons or symbols, only outlined. `.material-symbols-outlined {
}` |
Use this : link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:FILL@0..1" You need to declare the range to be able to do : |
Is MatIcon сomponent going to support quick ways to configure icon appearance when using Material Symbols (weight, fill, grade, size)? I mean via input properties. I think "fill" would be especially useful in projects that want to switch from Material Icons to Material Symbols, since e. g. "fill" in Material Icons Round is kind of random compared to Material Symbols where it's controlled by the user. |
Not only that, but some MD3 specs uses both styles to indicate an state. |
Google Fonts now displays a note in the style selection indicating that Material Icons are deprecated. |
Yes, the Material Icons set has not gotten routine updates in at least two or three years now. Material Symbols has many more icons now as a result, and could be labeled as “current” rather than “new” at this point. |
The urgency of this issue should be upped, it's not P3 anymore with Material Icons having become deprecated. |
Feature Description
Google just published Material Symbols, a fresher version of material icons that's also packaged within a variable font, giving us designers & developers more fine-grained control over the icons' looks 🎨 Plus, their default icon styles look a tad more modern (-> rounded icons).
It would be great to use them in our Angular projects through one of Angular's material components.
Use Case
Simplify using Google's new Material Symbols font.
The text was updated successfully, but these errors were encountered: