File tree 1 file changed +7
-5
lines changed
packages/mui-material/src/Fab
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -76,11 +76,6 @@ const FabRoot = styled(ButtonBase, {
76
76
[ `&.${ fabClasses . focusVisible } ` ] : {
77
77
boxShadow : ( theme . vars || theme ) . shadows [ 6 ] ,
78
78
} ,
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
- } ,
84
79
...( ownerState . size === 'small' && {
85
80
width : 40 ,
86
81
height : 40 ,
@@ -132,6 +127,13 @@ const FabRoot = styled(ButtonBase, {
132
127
} ,
133
128
} ) ,
134
129
} ) ,
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
+ } ) ,
135
137
) ;
136
138
137
139
const Fab = React . forwardRef ( function Fab ( inProps , ref ) {
You can’t perform that action at this time.
0 commit comments