Skip to content

Commit

Permalink
[ButtonBase] Don't apply hover styles when disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon authored and oliviertassinari committed Jun 12, 2021
1 parent bbba0c2 commit e7b3171
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/material-ui/src/Button/Button.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const ButtonRoot = styled(ButtonBase, {
duration: theme.transitions.duration.short,
},
),
'&:hover': {
'&:hover': !styleProps.disabled && {
textDecoration: 'none',
backgroundColor: alpha(theme.palette.text.primary, theme.palette.action.hoverOpacity),
// Reset on touch devices, it doesn't add specificity
Expand Down

0 comments on commit e7b3171

Please sign in to comment.