Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

215
Visualizações
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 Respostas
Responde à pergunta

0

It can be done as follow:

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

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda