angular / angular/components

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

Đang mở
#22,845 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
area: material/icon feature P4
Ngôn ngữ chính
TypeScript
Star
25k
Fork
6.8k
Merge trung bình
1 ngày 8 giờ
Pull request đã merge (30 ngày)
91

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu bằng việc xem xét triển khai hiện tại của mat-icon và phần thảo luận liên quan trong issue 11544. Xác nhận cách các biểu tượng filled hiện được chọn, sau đó xác định cách các biến thể outlined, rounded, sharp và two-tone sẽ được cung cấp thông qua mat-icon; được xem là hoàn thành khi mỗi biến thể được yêu cầu hoạt động mà không cần workaround CSS đã được ghi lại.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
angular, typescript
Lĩnh vực
frontend, web-dev
Loại issue
Tính năng
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.