-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Description
While #60234 got us in the right direction, we can further simplify (as I originally noted here: #60234 (comment)).
We can certainly iterate from here, but I did note that it's unexpected to have two different interactions for enabling and disabling overrides, and especially two different interactions for enabling.
Visual
CleanShot.2024-04-10.at.12.31.44.mp4
Removing the connection between metadata.name and the UI changing from a button to a toggle (removing the toggle altogether). Even if my block has a metadata.name value, I should still see the same "Allow overrides" button.
Flow
I click "Allow overrides" and a modal renders with the name field. I am required to add a name if there is not one. If one already exists, I see it in the input field already.
I select "Allow overrides" to confirm my override. When I press "Allow overrides" on the modal, the binding is applied—just like when I first created a binding initially. A name is required, but a name is not the catalyst for establishing the override.
Now I see the secondary button in the Inspector, but it renders "Disable overrides".
When I select that button, I see a "Disable overrides" modal to confirm my decision. The help text should state what will happen to my existing overrides. There is no name field on this modal. When I press "Disable overrides" on the modal, the binding is removed.
cc @WordPress/gutenberg-design
Metadata
Metadata
Assignees
Labels
Type
Projects
Status