Mat-select panel min-width

前端 未结 4 1412
灰色年华
灰色年华 2021-02-10 15:00

I\'m trying to customize mat-select with multiple checkboxes. for some reason the panel get wrong min-width as below:

and I don\'t know where its calculating t

4条回答
  •  离开以前
    2021-02-10 15:59

    Try this way : define a panel class for your mat-select in the code and then in the global/app styling file just add:

    .panel-class-name .mat-select-panel {
     // add your styling here
    }
    

    It worked for me to add some component specific styling for material components.

提交回复
热议问题