Restore the site editor navigation panel edit button #59372
Labels
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
Needs Design Feedback
Needs general design feedback.
[Package] Edit Site
/packages/edit-site
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Description
The button to edit navigation links in the Site editor navigation panel has been removed in #59335
I'm not sure the design feedback and reasoning on #59335 is ideal.
One of the most confusing and inconsistent things in the Site editor is the mechanism to switch from 'view' mode to 'edit' mode. In a few releases, the affordance of this mechanism has been progressively reduced more and more.
I'm not sure making the switghing mechanism more obscure and undiscoverable is any progres.
RIght now, the only way to switch to edit mode in this view for keyboard users and screen reader users is to move focus to the iframe preview and press enter. The whole 'clickablity' of the perview iframe is to be hones a big hack and I'd like to see that refactored to a more standard and more semantic UI. I already created a couple issues about it. basically:
role="button"
is arguably a hack that should be avoided in favor of a standard button.That said, I kindly disagree with the specific reasoning on #59335 as well.
I'm not sure the navigation panel should be a place where items can be edited 'in place' in the panel itself in the first place. Additionally, there are other actions that can only be performed in edit mode. For example, renaming a link, adding new links and possibly other actions.
As such, removing one of the ways to access edit mode seems to me less than ideal.
Also consistency is key. Instead fo making the UI more and more inconsistent I'd like to see an effor to make things more predictable and consistent. In the navigation panel there are other places where an 'edit' icon button is used, for example:
I'd rather think that we should add more edit buttons to switch the editor to edit mode rather than removing them
Lastly, I'd like to note I'm not comfortable with the process followed on #59335. I'm not sure submitting, reviewing, and merging a pull request on a Saturday in a little more than two hours with no accompanying issue to allow for broader discussion (as requested by the contributing guidelines of this project) and not caring abou using any accessibility label is the best way to encourage collaboration and contribution to this project.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Before #59335
After
Environment info
No response
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: