Paginator: options list visually inconsistent for legacy and standard appearance
- 主要言語
- TypeScript
- スター
- 25k
- フォーク
- 6.8k
- 平均マージ
- 1日 8時間
- マージ済み PR(30日)
- 91
説明
#### Bug, feature request, or proposal:
When defining globally the appearance of the app form-fields as `standard` (via `MatFormFieldDefaultOptions`), the paginator options list value is not vertically aligned with its arrow.
When using `legacy`, (visually) everything works as expected.
On a regular `mat-form-field`, this inconsistency isn't as noticeable, probably because the font size is larger than the one used on the paginator.
#### What is the expected behavior?
Paginator options (select element) should have its value aligned with the arrow, when using `standard` appearance.
#### What is the current behavior?
Paginator options' (select element) value is not vertically aligned with the arrow.
#### What are the steps to reproduce?
https://stackblitz.com/edit/angular-cqtqvd-zwpq9y?file=material-module.ts
On the `material-module.ts` file, go to line 48 and switch the property value between 'legacy' and 'standard'.
#### What is the use-case or motivation for changing an existing behavior?
Visual inconsistency when using the 'standard' appearance.
#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Only noticed on Angular 7 and Material 7.0.2, but this could probably affect previous versions.
#### Is there anything else we should know?
--
コントリビューションガイド
調査の方向性
リンクされた StackBlitz の再現から始め、特に material-module.ts の 48 行目を確認し、MatFormFieldDefaultOptions を legacy と standard の間で切り替えます。paginator options の値とその矢印を比較し、再現で使用されている paginator select のスタイリングを追跡します。standard appearance で値が矢印と垂直方向に揃い、legacy appearance を壊さない状態になれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- angular, typescript
- 領域
- frontend
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100