1

Is there any way by which we can add border color in mat input field in Angular , by default it comes with no border and when we hover over it it gets a border black .

Can we change the default behaviour to black border ? I am unable to do that by any css .

I used this -

.mat-form-field-appearance-outline .mat-form-field-outline {
  color: white;
}
angular_code
  • 319
  • 3
  • 18

1 Answers1

1

Please write this css at the end of style.css file

if you have added this css on Component.css then it will not work

if it still not works then try with !important

hope it will usefull for all

Reason

any css file or scss will apply last value of that styles

EXAMPLE

  .CLASS {
     font-size : 20px;
    }

 .CLASS {
     font-size : 10px;
  }

So it will encounter font-size : 10px;

Dako patel
  • 760
  • 4
  • 13