Reputation: 890
I need to change the color of the Angular Material md-navbar. At present I see only white background option. How can we change the color of the md-navbar?
Upvotes: 2
Views: 10234
Reputation: 12813
According to the docs, there doesn't appear to be a way to assign a class or id to the md-nav-bar
, as with other AM directives, to which you can apply styling.
However, if you inspect the element in the console you will see this:
So you could just use CSS:
md-nav-bar .md-nav-bar {
background: yellow;
}
Upvotes: 4