Expansion-panel from material angular 4

后端 未结 9 1447
慢半拍i
慢半拍i 2021-02-07 11:13

I hava an angular 4.4.4 application with material 2.0.0-beta.12 and I want to use the mat-expansion-panel from material design.

This is my code

9条回答
  •  不思量自难忘°
    2021-02-07 11:32

    This code below will work when added to your components css file

    :host {
      ::ng-deep {
        .mat-expansion-panel-spacing {
          margin: 0px 0 !important;
        }
      }
    }
    

提交回复
热议问题