angular / angular/components

mat-icon: mat-icon doesn't fully support outlined, rounded, sharp and two tone

Ouverte
#22,845 3 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
area: material/icon feature P4
Langage dominant
TypeScript
Étoiles
25k
Forks
6.8k
Merge moyen
1 j 8 h
PR mergées (30 j)
91

Description

#### Feature Description

Current implementation of `mat-icon` is incomplete, we can only use icons of filled style. We need a way to easily use outlined, rounded, sharp and two tone variant of material icons, something looking like:
```html

```

#### Use Case

Currently, using outlined, rounded, sharp and two tone variant of material icons is really inconvenient. We need to use some workaround, like
```javascript
@import url("https://fonts.googleapis.com/icon?family=Material+Icons|Material+Icons+Outlined");
```
```html
home
```
which is discussed in https://github.com/angular/components/issues/11544, and this method does not make use of `mat-icon`, as it's a general web solution to use oulined icons.

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Commencez par examiner l’implémentation actuelle de mat-icon et la discussion associée dans l’issue 11544. Confirmez comment les icônes filled sont actuellement sélectionnées, puis définissez comment les variantes outlined, rounded, sharp et two-tone doivent être exposées via mat-icon ; le travail sera considéré comme terminé lorsque chaque variante demandée fonctionnera sans le workaround CSS documenté.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
angular, typescript
Domaine
frontend, web-dev
Type d'issue
Fonctionnalité
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

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