-
-
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
[joy-ui][typography] Update docs after lineHeight changes #39366
Conversation
Netlify deploy previewBundle size report |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good! Left just some minor considerations 🤙
@@ -41,8 +41,6 @@ The `title-*` and `body-*` are commonly used in components. | |||
|
|||
We recommend to combine the title and body with the same or lower size when using them together. For example, `title-lg` and `body-lg` or `title-md` and `body-sm`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We recommend to combine the title and body with the same or lower size when using them together. For example, `title-lg` and `body-lg` or `title-md` and `body-sm`. | |
Aside from the heading typographic levels, the Typography component provides `title-*` and `body-*` type levels. | |
To ensure a good UI balance and information hierarchy, we recommend combining them using the same size or a lower one. | |
For example, using `title-lg` with `body-lg` or `title-md` with `body-sm`. |
I know you haven't touched this, but it's a good opportunity to revise this small paragraph a bit. I can't get the previous sentence (i.e., "The title-* and body-* are...") in the suggestion, but I'm considering it for it! It's a tricky sentence — @samuelsycamore might be able to shed some more light!
Those icons are gone, is it expected? The image in the description still contain icons. |
As @danilo-leal suggested here, since we won't have line-heights matching icons, I chose to have them removed to simplify the demo. The PR description is now updated 😉 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tiny edit suggestions, but overall, it looks good!
Updated the 'Title and body' demo on the Typography docs page. After changes made on #38462, the lineHeight from Typography no longer fits with SVG icons, so I tweaked the demo to make sense with the current version.
👉 https://deploy-preview-39366--material-ui.netlify.app/joy-ui/react-typography/#title-and-body