-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Further simplify overrides flow #60760
Comments
I'm not too concerned about the help text/modal descriptions, just that they represent allowing and disabling. We can fine-tune the copy separately. |
I'm not thinking the button necessarily needs to render both the state and the action. By rendering "Disable overrides" it's communicating that overrides are enabled (as well as other UI affordances being experimented with). If anything, perhaps we can update the help text of the control to indicate the status. |
This sounds like a good middle ground. |
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: