Border Radius serialized with unit set to undefined
#35628
Labels
[Block] Buttons
Affects the Buttons Block
[Block] Group
Affects the Group Block (and row, stack and grid variants)
[Block] Image
Affects the Image Block
[Block] Pullquote
Affects the Pullquote Block
[Block] Search
Affects the Search Block - used to display a search field
[Feature] Design Tools
Tools that impact the appearance of blocks both to expand the number of tools and improve the experi
[Feature] Inspector Controls
The interface showing block settings and the controls available for each block
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
When setting the border radius via the slider control for any block that supports it, but not changing the default unit (
px
), the latter is serialized in the corresponding block attribute asundefined
.Potentially relevant PRs: #33017 #33117 cc/ @aaronrobertshaw @ntsekouras @oandregal
Also cc/ing @andrewserong @ciampo (b/c #35281) -- Is there anything we can do to catch an issue like this at compile time level (e.g. by typing potential values of the unit in
UnitControl
?)Step-by-step reproduction instructions
px
.Screenshots, screen recording, code snippet
Environment info
No response
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: