Skip to content

Commit 84c0837

Browse files
authored
[IconButton] Fix hover effect when CSS Variables are enabled (#33971)
1 parent e978474 commit 84c0837

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/mui-material/src/IconButton/IconButton.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const IconButtonRoot = styled(ButtonBase, {
5454
...(!ownerState.disableRipple && {
5555
'&:hover': {
5656
backgroundColor: theme.vars
57-
? `rgba(${theme.vars.palette.action.active} / ${theme.vars.palette.action.hoverOpacity})`
57+
? `rgba(${theme.vars.palette.action.activeChannel} / ${theme.vars.palette.action.hoverOpacity})`
5858
: alpha(theme.palette.action.active, theme.palette.action.hoverOpacity),
5959
// Reset on touch devices, it doesn't add specificity
6060
'@media (hover: none)': {

0 commit comments

Comments
 (0)