-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Theme -> typography -> caption -> lineHeight is ignored #19315
Comments
Interesting. Yeah, I guess we can rely on the caption typography directly. What do you think of this diff? diff --git a/packages/material-ui/src/FormHelperText/FormHelperText.js b/packages/material-ui/src/FormHelperText/FormHelperText.js
index c0da0a8e9..76660a69a 100644
--- a/packages/material-ui/src/FormHelperText/FormHelperText.js
+++ b/packages/material-ui/src/FormHelperText/FormHelperText.js
@@ -11,9 +11,7 @@ export const styles = theme => ({
color: theme.palette.text.secondary,
...theme.typography.caption,
textAlign: 'left',
- marginTop: 8,
- lineHeight: '1em',
- minHeight: '1em',
+ marginTop: 4,
margin: 0,
'&$disabled': {
color: theme.palette.text.disabled,
@@ -32,7 +30,8 @@ export const styles = theme => ({
},
/* Styles applied to the root element if `variant="filled"` or `variant="outlined"`. */
contained: {
- margin: '8px 14px 0',
+ marginLeft: 14,
+ marginRight: 14,
},
/* Pseudo-class applied to the root element if `focused={true}`. */
focused: {}, |
@oliviertassinari Looks great! Thank you for a quick response and coming up with the solution. |
Great, do you want to work on the issue? |
Thank you, but I do not understand material-ui so deeply and also do not know typescript. Also you already did the work, so you deserve the credit for it. |
Has anyone assigned to it? I am happy to help! :D |
@suliskh @oliviertassinari if neither of you assigned your self to this issue please let me know. I am willing to do this as my first issue attempt for this repository. |
Note that the proposed patch seems to close #19359 at the same time :), but to be confirmed. |
Okay, I am going to work on the proposed patch. |
The [material-design] is using pseudo-element with specified height to create gap between |
Current Behavior 😯
Theme -> typography -> caption -> lineHeight is ignored
Expected Behavior 🤔
Theme -> typography -> caption -> lineHeight should not be ignored :)
Steps to Reproduce 🕹
Latest stable material-ui and latest stable react
Thank you
The text was updated successfully, but these errors were encountered: