-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make SpacingSizesControl more intuitive #63963
Comments
Just a quick comment that I like the prototype! I always find the dropdown fiddly to use, so I really like the idea of removing that step. |
Big +1! Love the prototype! I'm only not sure of the chain icon. |
It's used for the border sides and border radius controls. Linking and unlinking is a relatively common UX pattern for this sort of interface. |
True, I forget about those. If we use the chain icon already in this context, let's go with it. Nothing we couldn't change later if needed. |
I think this is an improvement! There'd basically be no UI option for linking all four sides, right? I'm not saying there needs to be honestly, such an edge use case and you can achieve it with this UI, I just wanted to confirm this point. Looks like Figma more more less offers this same experience of linking/unlinking the inline/block spacing options not all four sides. 👍 |
Only if the block's dimensions set them all as linked, like how block gap is for many blocks (but some have two controls). I'm not sure if padding/margin can all be linked but I'll look. |
I like where the prototype is headed. These two issues in the current implementation are very frustrating. |
+1 for this UI improvement. I think, there is a UI issue we could improve on the SpacingSizesControl: #59135 |
There's a bit of overlap with work in #62618, so we should consolidate. I'm happy to close that one in favor of this, and in case there's some icon reusage we can do there's a Figma linked there. But that's also to say, this seems a good improvement both functionally and visually. |
@richtabor The suggested functionality implemented in #65193 I can work on a follow up to update the suggested icons. Could you provide svg assets? |
The current experience of editing a specific sides of the SpacingSizesControl is difficult to parse.
Here's why:
DropdownMenu
that lists the individual sides) has a very similar icon to the icons to the left of the RangeControls for each. It's not clear what this icon does, and because it's so similar it's easy to mistake the other icons for this (and vise versa).DropdownMenu
to switch views within the component.The original effort to only show one side at a time was an effort to save vertical space in the Inspector, but with the current improvements to this UI, I think we can afford to use this space—to make it much more intuitive to use.
Current
CleanShot.2024-07-25.at.21.33.32.mp4
Proposed
You select the "Unlink sides" icon and the sides are unlinked. No DropdownMenu to invoke singular sides. I've also updated icons to make them easier to scan and follow a vertical line.
CleanShot.2024-07-25.at.21.35.13.mp4
Here's a prototype
The text was updated successfully, but these errors were encountered: