Skip to content
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

Restore the site editor navigation panel edit button #59372

Open
afercia opened this issue Feb 26, 2024 · 2 comments · May be fixed by #59429
Open

Restore the site editor navigation panel edit button #59372

afercia opened this issue Feb 26, 2024 · 2 comments · May be fixed by #59429
Assignees
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

Comments

@afercia
Copy link
Contributor

afercia commented Feb 26, 2024

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.

  • At some point, there usd to be a blue button with visible text 'Edit'.
  • The button was then changed to an icon button with a pencil icon, which is already a cognitive load trigger and an inherent accessibility problem.
  • Now hte button in the 'Navigation' section of the panel has been entirely removed.

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:

  • It doesn't work well with screen readers.
  • It doesn;t work well with Safari, as the iframe is not exposed in the accessibility tree.
  • The focus style on the iframe is little noticeable aend doesn't work at all with Safari.
  • Overriding the native role of an iframe with an ARIA 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:

  • Templates > A custom template.
  • Templates > A default template that has been customized.
  • Pages > Any page

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

  • Go to the Site editor > Design > Navigation > Any navigation menu
  • In the details view of a menu, observe the edit pencil icon button is no longer there.
  • Observe the lack of the edit button is inconsistent with all the other 'details' view like:
    • Templates > A custom template.
    • Templates > A default template that has been customized.
    • Pages > Any page
  • Observe the only way to switch the editor to edit mode is now by clicking the preview iframe (or by moving focus to it and pressing Enter).

Screenshots, screen recording, code snippet

Before #59335

before

After

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

@afercia afercia added [Focus] Accessibility (a11y) Changes that impact accessibility and need corresponding review (e.g. markup changes). Needs Design Feedback Needs general design feedback. [Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") labels Feb 26, 2024
@afercia afercia self-assigned this Feb 28, 2024
@afercia afercia added [Package] Edit Site /packages/edit-site [Type] Bug An existing feature does not function as intended and removed [Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") labels Feb 28, 2024
@afercia afercia linked a pull request Feb 28, 2024 that will close this issue
@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label Feb 28, 2024
@draganescu
Copy link
Contributor

Hi @afercia I think the situation now is a bit in-between hence confusing. The end goal as started in #59340 is to remove the edit view for individual navigations. That screen is a stub, it is confusing and there are no plans anywhere to make it better.

That is not to say it doesn't still have a purpose, maybe when Gutenberg natively supports mega menus having a whole canvas for the menu will be something useful.

But today it doesn't offer anything on top of what the navigation block editing offers.

So instead of adding the button back, let's continue on #59340 and just show the home in the frame when we list the available menus?

@afercia
Copy link
Contributor Author

afercia commented Mar 20, 2024

Hi @afercia I think the situation now is a bit in-between hence confusing. The end goal as started in #59340 is to remove the edit view for individual navigations. That screen is a stub, it is confusing and there are no plans anywhere to make it better.

I will comment on #59340 on why I think it's not ideal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants