angular / angular/components

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

Open
#22,845 3 comments 0 reactions 0 assignees View on GitHub
area: material/icon feature P4
Dominant language
TypeScript
Stars
25k
Forks
6.8k
Avg merge
1d 8h
Merged PRs (30d)
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.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the current mat-icon implementation and the related discussion in issue 11544. Confirm how filled icons are currently selected, then define how outlined, rounded, sharp, and two-tone variants should be exposed through mat-icon; done means each requested variant works without the documented CSS workaround.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, typescript
Domain
frontend, web-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.