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

758
Views
¿Cómo cambiar el color del mat-divisor?

¿Es posible cambiar el color mat-divider ? Intenté lo siguiente, no funcionó

componente.html

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

componente.scss

 .material-devider { color: red }
over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

Sí tu puedes.

Debe invalidar el estilo de clase .mat-divider en su propio CSS escrito y cambiar la propiedad border-top-color .

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

es el estilo predeterminado de Angular Material.

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

Esto debería ser suficiente para cambiarlo (si su CSS se procesa más tarde que el de Material). De lo contrario, agregar una mayor especificidad a su clase CSS ayudará ( .mat-divider.mat-divider ).

Ejemplo de StackBlitz para este caso .

over 4 years ago · Santiago Trujillo Report

0

Para cambiar el color mat-divider simplemente cambie la propiedad border-top-color de la clase .mat-divider.

 .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 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!