New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not able to change primary text color. #1674
Comments
It seems like a missing |
Tried adding important as well, but its not working. Do you mean to add important in theme class, that is also not working.
|
Adding it there would not work. It needs to be built with ThemeGenerator. |
is there good document around it, on how to use theme generator? |
|
Having the exact same issue. I implemented a Theme using the ThemeProvider as explained in the documentation. I set the Primary value for the TextColorOptions and I get the same behaviour as @kunalpgithub.
I check the values in the developer console (Chrome) and I can clearly see that the value I defined in the ThemeTextColorOptions is correct but is striked through and overridden by the default value. I could solve the issue by adding the !important value in my app.css but it feels dirty and I think it should work via the the ThemeProvider as described in the documentation.
|
@wflouw in my case, even important is also not working. Difference I see is , you are using material and I am using bootstrap. |
@stsrki How should we include the |
@nvassell adding style in my index.html with important worked for me. You can try that.
|
@kunalpgithub Oh interesting! I haven't tried that yet! |
@nvassell As a workaround use the @kunalpgithub example. In the meantime, I will fix it in the code. |
I want to change text color of my heading in blazorise component using theme.
It looks like colors are getting override by boostrap mixing scss.
Here is my code for theme and usage of heading component.
Here is usage of my theme colors
But in browser I don't see this color getting applied, instead if picks up default primary blue color.
I would like to see color applied in theme variable instead of default.
I have also tried overriding class in component css and in global css file, but still its picking default blue color.
Let me know if I am doing anything wrong.
The text was updated successfully, but these errors were encountered: