angular / angular/components

Paginator: options list visually inconsistent for legacy and standard appearance

Aperta
#13,907 6 commenti 2 reazioni 0 assegnatari Vedi su GitHub
area: material/paginator P4
Lingua principale
TypeScript
Stelle
25k
Fork
6.8k
Merge medio
1g 8h
PR unite (30g)
91

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia dalla riproduzione StackBlitz collegata, in particolare da material-module.ts riga 48, e alterna MatFormFieldDefaultOptions tra legacy e standard. Confronta il valore delle opzioni del paginator con la relativa freccia e traccia lo stile del select del paginator utilizzato dalla riproduzione. Il lavoro è completato quando il valore è allineato verticalmente con la freccia nell’aspetto standard senza compromettere l’aspetto legacy.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
angular, typescript
Ambito
frontend
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.