components icon indicating copy to clipboard operation
components copied to clipboard

docs-bug(mat-paginator): Consider documenting ability to change styling for page size dropdown

Open drk-mtr opened this issue 3 years ago • 0 comments
trafficstars

Documentation Feedback

As highlighted in https://github.com/angular/components/pull/18800, the page size dropdown looks wrong if a default formfield style is set globally.

Based on this page, the recommendation is to avoid using the "standard" or "legacy" setting for formfield appearance: https://material.angular.io/components/form-field/overview

It therefore seems to make sense to set a global default, but this breaks the page size dropdown.

My understanding is that overriding this is a case of adding a provider as follows:

        {
            provide: MAT_PAGINATOR_DEFAULT_OPTIONS,
            useValue: { formFieldAppearance: 'legacy' }
        }

Should this be documented?

Affected documentation page

https://material.angular.io/components/paginator/overview

drk-mtr avatar Sep 07 '22 20:09 drk-mtr