Skip to content

Commit

Permalink
Correctly apply formControl styles when property is passed
Browse files Browse the repository at this point in the history
  • Loading branch information
yevheniiminin committed Sep 30, 2021
1 parent 724a6c8 commit 7d35dfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mui-material/src/InputLabel/InputLabel.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const InputLabelRoot = styled(FormLabel, {
return [
{ [`& .${formLabelClasses.asterisk}`]: styles.asterisk },
styles.root,
!ownerState.formControl && styles.formControl,
ownerState.formControl && styles.formControl,
ownerState.size === 'small' && styles.sizeSmall,
ownerState.shrink && styles.shrink,
!ownerState.disableAnimation && styles.animated,
Expand Down

0 comments on commit 7d35dfc

Please sign in to comment.