Changing border color in mat-form-field

前端 未结 8 1482
猫巷女王i
猫巷女王i 2020-12-14 22:59

I am using angular material mat-form-field. I have a dark background, and therefore am trying to change the border of the form-field to white. But I am not able

8条回答
  •  再見小時候
    2020-12-14 23:36

    I had tried many things, finally, I am able to change the bottom line (which we are thinking is a border, which is actually not a border), using this:

    ::ng-deep.mat-form-field.mat-focused .mat-form-field-ripple{
        background-color: black;
    }
    

    That colored line is actually span filled with color! Hope this helps :)

提交回复
热议问题