Surface palette is used in Card and Input labels #1756
Unanswered
MihailsKuzmins
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, guys.
Thank you for the awesome material design library.
I'm struggling with theming at the moment. I try to make my cards stand out in comparison to the background and managed to do it with these lines of code:
But I encountered a problem that a label in my input fields don't have the same background as the window background.
![image](https://user-images.githubusercontent.com/47413092/118710665-47a28280-b827-11eb-979b-67cc3be22d9b.png)
![image](https://user-images.githubusercontent.com/47413092/118710141-91d73400-b826-11eb-8315-4c38f6abbed6.png)
Then I set
Surface
to the same color as the background color of the window and after it<MudCard>
had the same color as the background.Is it possible to make the background color of a
<MudCard>
different than the window background and keep the input label background the same as the window without writing custom CSS?Beta Was this translation helpful? Give feedback.
All reactions