angular / angular/components

feat(core): Expose SCSS breakpoints

Đang mở
#25,923 5 bình luận 6 reaction 0 người được giao Xem trên GitHub
area: material/core 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

As @angular/flex-layout become deprecated and Angular team does not intend to provide an alternative, we are forced to handle responsive layout by our own.

Writing CSS is ok, but to stick with Material design guidance we must use specific breakpoints. It would be great if @angular/material could expose these breakpoints like it does for palettes and theming. Otherwise we have to declare them ourself for every projects.

### Use Case

would simplify scss writting and add opinions about breakpoints (like CDK Layout API)

```scss
@use '@angular/material' as mat;

@media #{$mat.gt-xs} {
// insert your styles
}
```

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 cách so sánh các biến breakpoint SCSS được yêu cầu với CDK Layout API và bề mặt theming của Angular Material được đề cập trong issue. Được xem là hoàn thành khi Angular Material cung cấp các giá trị breakpoint được tài liệu hóa và có thể được sử dụng trong các media query SCSS mà không cần định nghĩa lại chúng trong từng dự án.

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, scss
Lĩnh vực
design, frontend
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
38/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.