-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Allow enabling custom line heights using theme.json #25043
Conversation
@@ -136,6 +136,9 @@ | |||
}, | |||
"fontSize": { | |||
"custom": true | |||
}, | |||
"lineHeight": { | |||
"custom": false |
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.
unlike the previous one, this one is opt-in and doesn't have presets yet.
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.
For context, there's #23111 to create presets for line-height, padding, and margin that also lists previous experiments that were canceled.
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.
Perfect, it's a good way to test theme.json only presets.
Size Change: +2 B (0%) Total Size: 1.17 MB
ℹ️ View Unchanged
|
Related #20588
Similar to #24761 but for custom line-height.
The idea of this PR is to support disabling/enabling custom line-height support from theme.json while retaining backward compatibility for the disable-custom-font-sizes theme support flag.
Testing instructions