[Button] Add "fill: color" to disabled button
See original GitHub issueFeature Requests
When using SVG icons in Buttons the CSS attribute color
doesn’t change the actual color of the SVG icon. Therefore an icon is not greyed out correctly when used with a disabled button. See demo below:
(there is a white icon on the Next
button that should be greyed out)
I suggest that additionally to the color
attribute that there is the fill
attribute that would add the same color.
So instead of this:
There would be this CSS:
This would produce my expected output for the disabled button icon:
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
Style disabled button with CSS - Stack Overflow
Change the background-color of the button when it is disabled · Change the image in the button when it is disabled · Disable...
Read more >Disabled buttons - W3Schools Tryit Editor
DOCTYPE html> <html> <head> <style> .button { background-color: #4CAF50; /* Green */ border: none; color: white; padding: 15px 32px; text-align: center;
Read more >Why You Shouldn't Gray Out Disabled Buttons - UX Movement
How should disabled buttons appear when they're inactive? The way most designers indicate an inactive state is by graying out the button.
Read more >Can we change background color of a disabled button in ...
That would work for normal buttons background color change but he wants to change the color for a disabled button. So your code...
Read more >How to style the disabled button using CSS - Reactgo
To style the disabled button, we can use the :disabled pseudo-class selector in css. Here is an example, that sets the background ,...
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
This issue is what originated https://github.com/material-components/material-components-web/issues/4633
Yep, rmwc is rendering an svg inside of an i tag instead of the svg being the root node of the icon.