angular / angular/components

feat(core): Expose SCSS breakpoints

オープン
#25,923 コメント 5 件 リアクション 6 件 担当者 0 名 GitHub で見る
area: material/core feature P4
主要言語
TypeScript
スター
25k
フォーク
6.8k
平均マージ
1日 8時間
マージ済み PR(30日)
91

説明

### 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
}
```

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず、要求されている SCSS breakpoint 変数を、issue で言及されている CDK Layout API および Angular Material の theming サーフェスと比較します。Angular Material が、各プロジェクトで再定義せずに SCSS media query で使用できる、文書化された breakpoint 値を公開すれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
angular, scss
領域
design, frontend
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
38/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。