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

768
Visualizações
How to change color for mat-divider?

Is it possible to change mat-divider color? I tried the following, it didn't work

component.html

<mat-divider class="material-devider"></mat-divider>

component.scss

.material-devider {
    color: red
}
over 4 years ago · Santiago Trujillo
2 Respostas
Responde à pergunta

0

If you can.

You must override the .mat-divider class style in your own written CSS and change the border-top-color property.

 .mat-divider { border-top-color: rgba(0, 0, 0, 0.12); }

is the default style of Angular Material.

 .mat-divider { border-top-color: red; }

This should be enough to change it (if your CSS renders later than Material's). If not, adding more specificity to your CSS class will help ( .mat-divider.mat-divider ).

StackBlitz example for this case .

over 4 years ago · Santiago Trujillo Relatório

0

To change the mat-divider color simply change the border-top-color property of the .mat-divider class.

 .mat-divider { border-top-color: red; }

https://www.angularjswiki.com/angular/angular-material-divider-mat-divider-example/#mat-divider-color

over 4 years ago · Santiago Trujillo 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