How to hide/delete underline input Angular Material?

前端 未结 10 1109
伪装坚强ぢ
伪装坚强ぢ 2020-12-14 06:24

I have input element in Angular Material:




         


        
10条回答
  •  攒了一身酷
    2020-12-14 06:56

    ::ng-deep .mat-form-field-underline {
      display: none;
    }

    the above code will remove the default black underline

    ::ng-deep .mat-form-field-ripple {
      display: none;
    }

    this will remove the on focus ripple effect

提交回复
热议问题