angular / angular/components

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

オープン
#28,537 コメント 6 件 リアクション 6 件 担当者 1 名 @KMaster90 が担当を希望しています GitHub で見る
area: material/icon P3
主要言語
TypeScript
スター
25k
フォーク
6.8k
平均マージ
1日 8時間
マージ済み PR(30日)
91

説明

### 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

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。