From 4e8c225ff0d66892ce19d9eff39225558f2f7e10 Mon Sep 17 00:00:00 2001 From: Fidorov Andrei Date: Tue, 31 Mar 2020 21:09:49 +0200 Subject: [PATCH 1/2] fix line-height and height to 1.1885em to prevent cut thai text --- packages/material-ui/src/InputBase/InputBase.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/material-ui/src/InputBase/InputBase.js b/packages/material-ui/src/InputBase/InputBase.js index cbbf3a3d647f5c..b7f690428a0033 100644 --- a/packages/material-ui/src/InputBase/InputBase.js +++ b/packages/material-ui/src/InputBase/InputBase.js @@ -41,7 +41,7 @@ export const styles = (theme) => { // Mimics the default input display property used by browsers for an input. ...theme.typography.body1, color: theme.palette.text.primary, - lineHeight: '1.1875em', // Reset (19px), match the native input line-height + lineHeight: '1.1885em', // Reset (19px), match the native input line-height boxSizing: 'border-box', // Prevent padding issue with fullWidth. position: 'relative', cursor: 'text', @@ -87,7 +87,7 @@ export const styles = (theme) => { border: 0, boxSizing: 'content-box', background: 'none', - height: '1.1875em', // Reset (19px), match the native input line-height + height: '1.1885em', // Reset (19px), match the native input line-height margin: 0, // Reset for Safari WebkitTapHighlightColor: 'transparent', display: 'block', From 7f255bfdc35c51c369558e5296e5e2dd05460b85 Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Tue, 31 Mar 2020 21:54:51 +0200 Subject: [PATCH 2/2] Update InputBase.js --- packages/material-ui/src/InputBase/InputBase.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/material-ui/src/InputBase/InputBase.js b/packages/material-ui/src/InputBase/InputBase.js index b7f690428a0033..9e2e9594c53583 100644 --- a/packages/material-ui/src/InputBase/InputBase.js +++ b/packages/material-ui/src/InputBase/InputBase.js @@ -41,7 +41,7 @@ export const styles = (theme) => { // Mimics the default input display property used by browsers for an input. ...theme.typography.body1, color: theme.palette.text.primary, - lineHeight: '1.1885em', // Reset (19px), match the native input line-height + lineHeight: '1.1876em', // Reset (19px), match the native input line-height boxSizing: 'border-box', // Prevent padding issue with fullWidth. position: 'relative', cursor: 'text', @@ -87,7 +87,7 @@ export const styles = (theme) => { border: 0, boxSizing: 'content-box', background: 'none', - height: '1.1885em', // Reset (19px), match the native input line-height + height: '1.1876em', // Reset (19px), match the native input line-height margin: 0, // Reset for Safari WebkitTapHighlightColor: 'transparent', display: 'block',