Skip to content

Commit c8835a3

Browse files
Uzwernamefeliperli
authored andcommitted
[Fab] Increase disabled styles precedence (mui#35304)
1 parent bd9601d commit c8835a3

File tree

1 file changed

+7
-5
lines changed
  • packages/mui-material/src/Fab

1 file changed

+7
-5
lines changed

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

+7-5
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,6 @@ const FabRoot = styled(ButtonBase, {
7676
[`&.${fabClasses.focusVisible}`]: {
7777
boxShadow: (theme.vars || theme).shadows[6],
7878
},
79-
[`&.${fabClasses.disabled}`]: {
80-
color: (theme.vars || theme).palette.action.disabled,
81-
boxShadow: (theme.vars || theme).shadows[0],
82-
backgroundColor: (theme.vars || theme).palette.action.disabledBackground,
83-
},
8479
...(ownerState.size === 'small' && {
8580
width: 40,
8681
height: 40,
@@ -132,6 +127,13 @@ const FabRoot = styled(ButtonBase, {
132127
},
133128
}),
134129
}),
130+
({ theme }) => ({
131+
[`&.${fabClasses.disabled}`]: {
132+
color: (theme.vars || theme).palette.action.disabled,
133+
boxShadow: (theme.vars || theme).shadows[0],
134+
backgroundColor: (theme.vars || theme).palette.action.disabledBackground,
135+
},
136+
}),
135137
);
136138

137139
const Fab = React.forwardRef(function Fab(inProps, ref) {

0 commit comments

Comments
 (0)