Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

214
Views
mat-icon appears in grey color in Angular

I would like to show mat-icon in red color but it always appear in grey color. Is there a way to show mat-icon in red color? If somebody knows the please let me know. Thank you

<mat-icon
    *ngIf="form.hasError('required', 'name') && isNameSubmitted"
    class="mdi mdi-24px mdi-alert-circle"
    matSuffix>
</mat-icon>

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

It can be done as follow:

.mat-form-field .mat-icon {
   color: red;
}
about 4 years ago · Juan Pablo Isaza Report

0

Often the default warn colour is red when using an Angular Material Theme. In such cases you can use:

<mat-icon color="warn">icon</mat-icon>

This is often a good practice when using material components as it will affect other parts of the element you might not think to style manually.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!