Skip to content

Commit

Permalink
[IconButton] Fix hover effect when CSS Variables are enabled (#33971)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheUnlocked committed Aug 22, 2022
1 parent e978474 commit 84c0837
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mui-material/src/IconButton/IconButton.js
Expand Up @@ -54,7 +54,7 @@ const IconButtonRoot = styled(ButtonBase, {
...(!ownerState.disableRipple && {
'&:hover': {
backgroundColor: theme.vars
? `rgba(${theme.vars.palette.action.active} / ${theme.vars.palette.action.hoverOpacity})`
? `rgba(${theme.vars.palette.action.activeChannel} / ${theme.vars.palette.action.hoverOpacity})`
: alpha(theme.palette.action.active, theme.palette.action.hoverOpacity),
// Reset on touch devices, it doesn't add specificity
'@media (hover: none)': {
Expand Down

0 comments on commit 84c0837

Please sign in to comment.