-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
Typography noWrap
hides high(vertical) characters
#8533
Comments
I can't reproduce the issue, but using |
I can swap this to |
That broke via
Has it showing appropriately. Before (as mentioned by @albinekb): However, it does move up the I am going to add this to the PR to see how |
**Typography.noWrap** add: lineHeight: 'inherit', revert: overflow: 'hidden'
When we add When we put <Typography type="title" color="inherit" noWrap> However, in the examples for:
In their <Typography type="body1" noWrap> Which is causing the display shift in Note: So we could:
I can make the changes to move forward however you see fit. Here are some screenshots: Result of 1 before margin adjustment: |
Went with Bumped up the content container pixels by |
@JeromeFitz Thanks for pushing it forward! After looking more into the issue, I confirm it. Maybe we shouldn't be using
material-components-web is using some different values. Still, their display 4 and 3 are affected by the same issue. So, I would suggest using But then adding the following style It's something we can compare against the spec: |
@oliviertassinari Thank you as always for such detail. This is incredibly helpful not just from this issue level, but the entirety of your project scope. The Vertical Rhythm topic is a great read. I've been making some adjustments to a local branch with the comments you shared (lineHeight, material-web-components, etc.) , however, before making any PR's going forward I will come back here with questions. Though, as I was writing, I did just see you self-assigned this. I can stand down as well if the extra cook in the kitchen is not needed and would be more work on your end. Thanks again! |
@albinekb, a (possible) short-term solution on your end would be to add the <Typography type="title" color="inherit" style={{ lineHeight: 'inherit' }} noWrap>
Inkommande bokningar
</Typography> |
Thanks, that's totally acceptable for me 👍 @JeromeFitz |
Awesome! However, all the credit goes to @oliviertassinari ❤️ 😀️ 👍️ |
Expected Behavior
When I use
noWrap
on Typography, it should not cut my "g" off, just like withoutnoWrap
Current Behavior
Steps to Reproduce (for bugs)
Use https://material-ui-1dab0.firebaseapp.com/demos/drawers/#responsive-drawer and add a
g
in the title
Context
This is happening because adding
noWrap
addsoverflow: hidden
, is this needed? Can we switch tooverflow-x: hidden
or remove it completely?Another fix would be to make the component with
overflow: hidden
fit higher chars.Thoughts?
Your Environment
latest
16.0.0
chrome canary
The text was updated successfully, but these errors were encountered: