-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
fix(button): Remove background-color from raised buttons on dark theme #833
Conversation
See: material-components#819 This runs contrary to the guidelines, but considering MDC gives full control of button color through class names (and CSS is very flexible), it's likely a non-issue. This also fixes the text color being wrong when a light primary color is used.
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed, please reply here (e.g.
|
Signed. |
CLAs look good, thanks! |
Codecov Report
@@ Coverage Diff @@
## master #833 +/- ##
=======================================
Coverage 99.93% 99.93%
=======================================
Files 68 68
Lines 3144 3144
Branches 387 387
=======================================
Hits 3142 3142
Misses 2 2 Continue to review full report at Codecov.
|
We should get input from the MD team on this then. As, what is currently provided is exactly what is specified here. The default's shouldn't go against that. |
I'd tend to agree, but I was (somewhat indirectly) asked to PR this by @traviskaufman on #819. |
I am not asking for a merge block. Simply a delay to get feedback from the design team on if this is appropriate. As what change is made by this PR is specifically against my entire understanding of the button component from when I made the original base for MCW. If I were to comment on the issue with that, it could easily get lost/looked over. Best keep the discussions targeted on the issue/PR in question rather than spreading conversation out. |
I won’t be available until Monday. @YiranM or @lynnjepsen, could you facilitate this? |
I apologize for not replying sooner, but I've found some time to look into this issue. I've written a longer explanation on the original issue and created a new PR to solve the original issue. |
Closing, as @lynnjepsen seems to have confirmed what @Garbee and the spec says with design. Thanks again @unascribed, we really appreciate the effort, but in this case I think we're seeing a case that should be handled on an implementation level as regards |
See: #819
This runs contrary to the guidelines, but considering MDC gives full control of button color through class names (and CSS is very flexible), it's likely a non-issue. This also fixes the text color being wrong when a light primary color is used.
Fair warning: I tested this by deleting the directive with Chrome devtools. I'm 90% sure my change here has the desired effect, but I haven't yet had a chance to test a fresh compile.