color="primary" not working
See original GitHub issue<md-toolbar color="primary"> Home </md-toolbar>
shows white color as background index.html `<!doctype html>
<html lang="en"> <head> <meta charset="utf-8"> <title>MeanStarter</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link href="../node_modules/@angular/material/prebuilt-themes/indigo-pink.css.css" rel="stylesheet"> <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=Montserrat:600" rel="stylesheet"> </head> <body class="mat-app-background"> <app-root>Loading the Angular Material App...</app-root> </body> </html>`Issue Analytics
- State:
- Created 6 years ago
- Comments:12 (5 by maintainers)
Top Results From Across the Web
AAPT: error: resource color/colorPrimary not found
In your project, you need to create color.xml file. Right click on values > New > Values Resource File > Enter File Name...
Read more >Android Development: Themes, Styles and Attributes - Zoolatech
Styles and Themes are intended to work together. For example, we have a style where the button background is colorPrimary and text color...
Read more >Xamarin Forms Android Theming: Unable to change actionBar ...
Hello @JarvanZhang-MSFT,. I have changed the android:colorPrimary to colorPrimary. But the toolbar background is still black instead of #15014E.
Read more >File -> New -> Xamarin.Android App -> Compilation Errors
... 'attr/colorPrimary (aka com.companyname.app13:attr/colorPrimary)' not found. ... Please update to the latest version of the product and if the problem ...
Read more >Styles and Themes - Android Developers
Themes assign semantic names, like colorPrimary , to Android resources. Styles and themes are meant to work together. For example, you might have...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
if you comment out below class in sidenav component.css file. it will work. This is added by default when you setup the sidenav.
/* .sidenav .mat-toolbar { background: inherit; } */
I’d really like to know what’s up with this as well. Imported the indigo-pink theme in my styles.css and there’s no console errors, but setting color=“primary” on an
<md-toolbar>
element does nothing at all.