3

The default select box of angular material is using the following class:

.mat-select-panel{
    min-width: 112px;
    max-width: 280px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding-top: 0;
    padding-bottom: 0;
    max-height: 230px;
    min-width: 100%;
}

However, I want to change the max-height to something else? How can i do so?

1 Answer 1

3

The API for mat-select has been updated and now allows you to specify additional classes for your panel using the panelClass input. You can then override styles in a global class definition.

Sign up to request clarification or add additional context in comments.

2 Comments

Can you provide an example? Thanks.
I see my custom class added when using <mat-select panelClass='my-class' ...> through firefox web tools but I don't see styles applied.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.