Tabs cannot be customized to have a different background, ripple, bottom bar and text color or it's not clear how to do it
have a way to change the colors
can't find a way to do it
using a md-tab-group results in a white background not a colored one with white text, how to change?
Providing a Plunker (or similar) is the best way to get the team to see your issue.
Plunker template: http://embed.plnkr.co/o077B6uEiiIgkC0S06dd/
customization
Angular 4, Material: latest
No
+1
For the time being, you can use plain CSS to customize it.
Make sure you remove encapsulation from your component with ViewEncapsulation.None
Here are some selectors you can customize:
md-tab-group {
background-color: pink;
}
.mat-tab-body-wrapper {
color: white;
background-color: red;
}
.mat-tab-label.mat-tab-label-active {
background-color: #3f51b5;
}
You can see in action on this plunker: https://plnkr.co/edit/2vHN2xnb4I25cYMusapQ?p=preview
PS: You should be able to customise within your theme using SASS
@kara So can we set background color individually on tabs now? Doesn't seem to work on 8.0.0-rc.0
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
_This action has been performed automatically by a bot._
Most helpful comment
For the time being, you can use plain CSS to customize it.
Here are some selectors you can customize:
You can see in action on this plunker: https://plnkr.co/edit/2vHN2xnb4I25cYMusapQ?p=preview
PS: You should be able to customise within your theme using SASS