Paginator: options list visually inconsistent for legacy and standard appearance
See original GitHub issueBug, 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?
–
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:6 (2 by maintainers)
Top GitHub Comments
@crisbeto, @mmalerba and @josephperrott :
I’m not sure if I should open a new issue for this (because they might be related), but I’ll share it here and await for further instructions.
I was just testing the latest version (7.2.1) and I noticed that if I set global appearance options for form fields (via
MatFormFieldDefaultOptions
), there are still visual inconsistencies, concerning its vertical alignment.'legacy'
appearance: everything is OK'standard'
appearance: page size options are below the vertical center line'fill'
appearance: page size options arrow is too high (since this select element will never have a label)'outline'
appearance: previous/next arrows are below the vertical center linePlease check the following link, and play with the options on
material.module.ts
, line 49 https://stackblitz.com/edit/angular-yakttk?file=material-module.tsThat would be fine - and maybe an option to place the label inside the form-field.