-
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
Global Styles sidebar: allow reseting the value of the line-height provided by the user #34260
Comments
Thanks @nosolosw for the ping 👍 I haven't had the chance to review the code in #34178 closely yet but hope to do so soon. To clarify, I believe the issue with resetting the line-height control is only within the Global Styles. In the block editor, simply clearing the field leaves the theme.json as the field's placeholder. Steps to replicate.
Possible options
Global StylesScreen.Recording.2021-08-24.at.10.17.00.pm.mp4Block EditorScreen.Recording.2021-08-24.at.10.13.18.pm.mp4 |
Thanks for the clarification, Aaron! I've clarified the issue title & description accordingly. |
I think the tools panel (#34257) could be the right place to provide an option to reset after all. I'm happy to have tried the current approach, but that keeps being the point of feedback that comes back to us, notably that if a control is shown by default on a block, it's not quite as clear that unchecking it is both resetting and hiding. To pair with one of the suggestions for tweaked behavior, it would be worth revisiting this one. In that behavior, default tools cannot be removed/hidden, so we could consider changing the icon from a checkmark to something else, indicating it clears. I have a bit on my plate, but have put it on my todo to mock this up unless someone else gets to it first. |
This should be absorbed entirely by #34345 |
Wanted to note the current behavior in 5.9 since it's been some time since this was opened. It's strange to me that the two following experiences are so different. Styles > Post Title Block If you clear out the field entirely, the field resets to the original value. This helps protect against the issue originally described here but prevents me from doing something simple: erase the current value and add in my own custom value. If this is a bug (seems like it might be), I'll open a separate issue. line.height.movStyles > Paragraph Block I can see that the paragraph line height works as expected: line.height.mov |
This is fixed. |
We're adding the theme's value coming from
theme.json
to the UI controls at #34178In the post editor, the user can reset the line-height value by clearing the field. In the site editor (global styles panel) the user can't do the same unless it resets all the values.
The text was updated successfully, but these errors were encountered: