-
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 disabling custom font sizes using theme.json config #25038
Conversation
@@ -133,6 +133,9 @@ | |||
}, | |||
"gradient": { | |||
"custom": true | |||
}, | |||
"fontSize": { |
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.
I think in other places we use font-size
but it was inconsistent with other properties on the file, so I chose fontSize
instead. cc @jorgefilipecosta
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.
I think the only place we use kebab-case for this is in the font-size
preset, for historical reasons. I agree we should update that as well and join team camelCase everywhere.
Size Change: +12 B (0%) Total Size: 1.17 MB
ℹ️ View Unchanged
|
Related #20588
Similar to #24761 but for custom font sizes.
The idea of this PR is to support disabling/enabling custom gradients from theme.json while retaining backward compatibility for the disable-custom-font-sizes theme support flag.
Testing instructions