material-web icon indicating copy to clipboard operation
material-web copied to clipboard

[mwc-button] Expose mwc-ripple css variable

Open twigy11 opened this issue 2 years ago • 2 comments

Is your feature request related to a problem? Please describe. We need to change the color and opacity ripple value for mvc-button. Is there any reason to not expose the css variables.?

Describe the solution you'd like Expose from the web component (ex. mvc-button) the mwc-ripple css variable.

Describe alternatives you've considered each component expose its own opacity css variable configuration

Thanks in advance

twigy11 avatar Aug 10 '21 07:08 twigy11

Same problem here. Would be fantastic if all this variables will ​exposed in all atomic components:

--mdc-ripple-press-opacity		0.12	Opacity of the ripple when pressed.
--mdc-ripple-hover-opacity		0.04	Opacity of the ripple when hovered.
--mdc-ripple-focus-opacity		0.12	Opacity of the ripple when focused.
--mdc-ripple-selected-opacity	0.08	Opacity of the ripple when the host component is "selected". This opacity is added to press, hover, and focus states.
--mdc-ripple-activated-opacity	0.12	Opacity of the ripple when the host component is "activated". This opacity is added to press, hover, and focus states.```

mgutbor avatar Aug 10 '21 11:08 mgutbor

Thanks for the issue. This will be introduced as a part of the major changes to all components for Material You (#2441, also see beginning of repo README). Each component will expose its dedicated custom properties, prefixed by the component name.

allan-chen avatar Aug 13 '21 19:08 allan-chen

Customizable in M3 now

asyncLiz avatar Aug 02 '23 02:08 asyncLiz