-
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
Spacing step controls do not aways displaying accurate information with custom steps #44133
Comments
@glendaviesnz and @jasmussen sorry for the ping, but I know you both have worked on the spacing steps. 🙏 My guess is the issue has something to do with the custom slugs used in my spacing example. The Twenty Twenty-Three theme is just using the 30, 40, 50, etc. slugs, but it appears that you should be able to specify anything in a custom theme. |
Thanks @ndiego, I have a fix for this here. One thing to be aware of is that if you don't use the |
Thanks @glendaviesnz, just tested and approved. There definitely is a drawback to custom slugs when it comes to theme switching, but the ability to customize slugs is fantastic, especially for those theme developers building their own "design system" for managing sizes. |
Yeh, we thought it was important to provide the flexibility here, so glad that is proving useful. |
Thanks for tickets and quick fixes! It's worth noting that the "XL, 2-XL" etc names should be retired in favor of 1x, 2x, 3x, 4x, etc, as outlined in #43412. It seems like the sooner we do this, the sooner we can set expectations of the control. |
Jay is correct in his comment here that this doesn't really work with the way the default spacing scales are structured. They currently use a perfect fifth multiplier so can't really be equated to a |
The Given that, I think something like |
Thanks @mtias, removing the |
Indeed, so it should be straightforward to address and it's more a matter of what seems the most clear. |
Description
The new spacing step controls do not always display accurately when configuring unlinked spacing.
After some thorough testing, this appears to happen when custom spacing steps are created. Using the following should reliably allow you to replicate the issue.
Step-by-step reproduction instructions
See the screenshot below for more information.
Screenshots, screen recording, code snippet
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: