question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 6 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

6reactions
nbangeracommented, Oct 27, 2018

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; } */

3reactions
ShawnMercadocommented, Sep 25, 2017

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found