material-components-web
material-components-web copied to clipboard
[iconButton] mdc-icon-button is not emitting theming styles(not using theme-styles() mixin)
Bug report
IconButton does not emitting theming styles while using core-styles() mixin.
usecase -
@use "@material/icon-button";
@include icon-button.core-styles;
Above code snippet is not using theme-styles mixin defined inside @material/icon-button/_icon-button-theme.
Steps to reproduce
- Go to 'https://codepen.io/sp30457/pen/PodbJXR'
- Check the styles as it is not using theming styles like
hover-state-layer-color,hover-state-layer-opacityetc. for icon button. No css variables for these properties are available.
Actual behavior
It is not using theme-styles mixin inside core-styles() mixin.
Expected behavior
Ideally it should use theme-styles inside core-styles() mixin.
Your Environment:
| Software | Version(s) |
|---|---|
| MDC Web | 15.0.0-canary.7971d6ad5.0 for @material/icon-button |
| Browser | Chrome latest |
| Operating System | Windows |