简体   繁体   中英

Angular material: no background color on mat-input on focus mode

在此处输入图片说明

I have a mat-input field

  <mat-form-field>
    <input class='formulaInput' matInput [(ngModel)]='mathFormulaInput'>
  </mat-form-field>

and I am not happy with the blue background when it is focused on. Is there a simple CSS way of hiding this?

This has nothing to do with angular-material, but with your browser. Check the "user agent stylesheets". Most likely this comes from the browsers autofill ( input:-internal-autofill-selected) styles.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM