Custom spacing sizes do not work properly after latest update #51891
Labels
[Type] Bug
An existing feature does not function as intended
[Type] Regression
Related to a regression in the latest release
Description
I have custom spacing sizes in my theme.json:
When I add these custom spacing sizes to a group in the block editor, the frontend displays them as:
For the top and bottom, it converts them to their actual units, while it keeps the variables from the right and left properties. The order here is dependent on which size I set first in the editor. Sometimes I get the actual units for the left and right. This is a new behavior that I noticed after updating the plugin.
Step-by-step reproduction instructions
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: