Further simplify overrides flow #60760
Labels
[Feature] Synced Patterns
Related to synced patterns (formerly reusable blocks)
Needs Dev
Ready for, and needs developer efforts
[Status] In Progress
Tracking issues with work in progress
[Type] Enhancement
A suggestion for improvement.
While #60234 got us in the right direction, we can further simplify (as I originally noted here: #60234 (comment)).
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 ametadata.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
The text was updated successfully, but these errors were encountered: