-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
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
Responsive typography helper for modifying properties #20696
Comments
Duplicate of #15561 |
@oliviertassinari I don't think this is a duplicate of that issue, which advocates for alignment (already a solution for that). You can't do the same with font-weights, since they're fixed to the theme (can't inherit). |
From what I understand, they are some cases where you want to change the font weight, using the |
Ah I overlooked that, thank you. Is there any reason it's not part of the |
@oliviertassinari okay I gave that a try, but Typography won't inherit from Box if you've set a default in your theme. Typography has more specificity.
|
Correct, it's what we want to solve in #15561. |
Summary 💡
Sometimes it's necessary to have an
h6
with a differentfontWeight
than what's in thetheme
, but referencing it directly withtheme.typography.h6.fontSize
makes you lose out on responsiveness.Possible solutions 🌈
Typography
Motivation 🔦
No utility for responsive font sizes, unless you're using
Typography
which doesn't accept custom font weights :(The text was updated successfully, but these errors were encountered: