Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

766
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda