-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
How to absorb font size units #25137
Labels
[Feature] Design Tools
Tools that impact the appearance of blocks both to expand the number of tools and improve the experi
Global Styles
Anything related to the broader Global Styles efforts, including Styles Engine and theme.json
Needs Decision
Needs a decision to be actionable or relevant
Comments
oandregal
added
[Feature] Design Tools
Tools that impact the appearance of blocks both to expand the number of tools and improve the experi
Needs Decision
Needs a decision to be actionable or relevant
labels
Sep 8, 2020
oandregal
added
the
Global Styles
Anything related to the broader Global Styles efforts, including Styles Engine and theme.json
label
Sep 8, 2020
Related issue #23323 |
It seems like we should expand the font size picker to accept values containing units. Being back-compatible when a value is a number it assumes it is a pixel unit value. |
7 tasks
7 tasks
Do we have anything pending here? |
I don't think so. I'm going to close the issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
[Feature] Design Tools
Tools that impact the appearance of blocks both to expand the number of tools and improve the experi
Global Styles
Anything related to the broader Global Styles efforts, including Styles Engine and theme.json
Needs Decision
Needs a decision to be actionable or relevant
Follow-up #24250 (comment)
In developing the Global Styles sidebar, we ran into the issue of having to convert to/from units the font size property. The issue is that font size values are serialized as px values in the post editor, so we did the same for the site editor.
This makes it so the global styles sidebar has to absorb that processing from theme.json data, which was done via utility functions
fromPx
/toPx
.This is to discuss further steps on how to best manage font-size units. Can we make it so that the UI component is responsible to absorb this complexity?
The text was updated successfully, but these errors were encountered: