angular / angular/components

bug(COMPONENT): MAT-ICON exhibits different behaviors when the fontSet is

Ouverte
#28,537 6 commentaires 6 réactions 1 personne assignée Réclamée par @KMaster90 Voir sur GitHub
area: material/icon P3
Langage dominant
TypeScript
Étoiles
25k
Forks
6.8k
Merge moyen
1 j 8 h
PR mergées (30 j)
91

Description

### Is this a regression?

- [ ] Yes, this behavior used to work in the previous version

### The previous version in which this bug was not present was

_No response_

### Description

With the default icon fontSet I can use
``

but if I change all the icons to outlined using
`iconRegistry.setDefaultFontSetClass('material-icons-outlined');`
or if I use it on a specific Icon
`fontSet="material-icons-outlined"`

`` DOESN'T WORK

I HAVE TO USE `icon_name` TO LET IT WORK NOW

(so the problem is to change all the icons when the app is already done)

### Reproduction

StackBlitz link:
Steps to reproduce:
1.
2.

### Expected Behavior

HAS TO WORK

### Actual Behavior

DOESN'T WORK

### Environment

- Angular: 17.1
- CDK/Material: 17.1
- Browser(s): arc
- Operating System (e.g. Windows, macOS, Ubuntu): mac

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.