New Units (dvh/dvw) from theme.json do not appear under Dimensions > Fixed Height in child group/row/stack blocks #67750
Labels
Global Styles
Anything related to the broader Global Styles efforts, including Styles Engine and theme.json
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Description
Units from theme.json do not appear under Dimensions > Fixed Height in group blocks
I noticed a bug today (6.7.1) where it also doesn't completely work for theme.json + dimensions opting in (this testing was for row/stack/group blocks inside a parent stack)
see attached screenshot showing it recognizes dvh/dvw for padding and minimum height, but not for the fixed height value (presumably height>fixed height should pull from the same declaration in theme.json since these are all the Dimensions options pulling from Settings > Spacing >
"units": [ "%", "px", "em", "rem", "vh", "vw", "dvh", "dvw" ]
I had a hard time finding anything about Fixed Height in the Documentation for either Dimensions or Group Block.
Per usual, I turn to Carolina's FSE site when I'm stumped: https://fullsiteediting.com/lessons/remove-settings-in-theme-json/
😄
Research:
Following the trail of this units opt-in journey led me here and the PR's that are linked within:
#52441
#54415
Perhaps they forgot one spot when tweaking?
Perhaps this issue is really part of the UnitControl component? https://developer.wordpress.org/block-editor/reference-guides/components/unit-control/
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Environment info
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.
The text was updated successfully, but these errors were encountered: