Skip to content

Commit

Permalink
Apply fix to the colored buttons as well
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoAndai committed Sep 11, 2024
1 parent 0a00417 commit 34eeaec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/mui-material/src/IconButton/IconButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const IconButtonRoot = styled(ButtonBase, {
}),
variants: [
{
props: (props) => !props.disableRipple,
props: (props) => !props.color && !props.disableRipple,
style: {
'&:hover': {
backgroundColor: theme.vars
Expand Down Expand Up @@ -113,7 +113,7 @@ const IconButtonRoot = styled(ButtonBase, {
...Object.entries(theme.palette)
.filter(createSimplePaletteValueFilter()) // check all the used fields in the style below
.map(([color]) => ({
props: { color, disableRipple: false },
props: (props) => props.color === color && !props.disableRipple,
style: {
'&:hover': {
backgroundColor: theme.vars
Expand Down

0 comments on commit 34eeaec

Please sign in to comment.