"vh" unit is not available in the unit control when added in theme.json #31700
Labels
Global Styles
Anything related to the broader Global Styles efforts, including Styles Engine and theme.json
[Type] Bug
An existing feature does not function as intended
Description
When support for custom units is enabled in theme.json using this format:
then the
vh
is not available in the unit control in the editors.The other units are available.
Step-by-step reproduction instructions
Expected behaviour
I expect the unit to be selectable.
Actual behaviour
It is not selectable.
vh in the unit control:
https://github.com/WordPress/gutenberg/blob/trunk/packages/components/src/unit-control/utils.js#L36
And vh support for cover block:
https://github.com/WordPress/gutenberg/blob/trunk/packages/block-library/src/cover/shared.js#L55
WordPress information
Device information
The text was updated successfully, but these errors were encountered: