Skip to content

Commit 3764e63

Browse files
authored
[TextField] Fix label notch for custom htmlFontSize (#19558)
1 parent 18524c1 commit 3764e63

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/material-ui/src/InputBase/InputBase.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,8 @@ export const styles = theme => {
3939
/* Styles applied to the root element. */
4040
root: {
4141
// Mimics the default input display property used by browsers for an input.
42-
fontFamily: theme.typography.fontFamily,
42+
...theme.typography.body1,
4343
color: theme.palette.text.primary,
44-
fontSize: theme.typography.pxToRem(16),
4544
lineHeight: '1.1875em', // Reset (19px), match the native input line-height
4645
boxSizing: 'border-box', // Prevent padding issue with fullWidth.
4746
position: 'relative',

0 commit comments

Comments
 (0)