Dimensions Panel: Inconsistent menu item positions #49124
Labels
[Block] Cover
Affects the Cover Block - used to display content laid over a background image
[Feature] Design Tools
Tools that impact the appearance of blocks both to expand the number of tools and improve the experi
[Feature] UI Components
Impacts or related to the UI component system
[Type] Bug
An existing feature does not function as intended
Description
Hovering padding or margin controls can result in the Dimensions Panel's menu items reordering.
This appears to be a regression introduced with the on hover visualizers for padding and margin in #44955.
Expected Behaviour
Menu items retain their position irrespective of what panel items are moused over. This was the behaviour in the commit prior to #44955 in 5a82cf5.
Actual Behaviour
The Cover block's menu items are reordered when the padding or margin controls are moused over.
cc/ @glendaviesnz
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Screen.Recording.2023-03-16.at.4.06.04.pm.mp4
Screen.Recording.2023-03-16.at.4.03.26.pm.mp4
Environment info
trunk
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: