Skip to content

feat(mat-icon): Make mat-icon use svgIcon by default #24491

Open
@angelaki

Description

@angelaki

Feature Description

I'm trying to get rid of the mat icon font since I prefer using only svg graphics. I replaced all the <mat-icon>icon</mat-icon> with <mat-icon svgIcon="icon"></mat-icon> and loaded the material icons as svg.

So far, so good. The problem now is that components using mat-icon internal (e.g. mat-stepper) display the text instead of the icon (since the font is not loaded).

One solution would be to make mat-icon use svgIcon by default. Are there any other possibilities?

Use Case

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/stepper

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions