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 committed May 21, 2021
1 parent fd0b2a1 commit cb593a5
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 = experimentalStyled(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 cb593a5

Please sign in to comment.