angular / angular/components

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

未关闭
#28,537 6 条评论 6 个 reaction 已指派 1 人 已被 @KMaster90 认领 在 GitHub 查看
area: material/icon P3
主要语言
TypeScript
星标
25k
派生
6.8k
平均合并
1 天 8 小时
30 天内合并 PR
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 摘要。