Skip to content

Widget areas are difficult to navigate with keyboard only #38260

Open

Description

@tellthemachines

Description

In the Widgets Editor, focusing on a widget area and then pressing Tab takes us to the Sidebar. In order to enter the widget area, we need to use the arrow keys, but that's not immediately clear, and there are no clues about it in the interface.

The widgets area doesn't have any sidebar settings, so transferring focus to the sidebar isn't as useful as it may be when a regular block is focused.

Also, if the "Contain text cursor inside block" preference is enabled, the arrow keys don't work for block navigation, so it's impossible to enter the widget area using the keyboard.

Step-by-step reproduction instructions

  1. Open the Widgets editor at wp-admin/widgets.php.
  2. Tab into the editor content and land on a widget area.
  3. Press Tab again and verify that focus is transferred to sidebar.

Screenshots, screen recording, code snippet

No response

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

Activity

  1. added
    [Focus] Accessibility (a11y)
    [Feature] Widgets Screen
    Needs Accessibility Feedback
    on Jan 27, 2022
  2. joedolson commented on Feb 11, 2022

    @joedolson
    Contributor

    It seems to me that two separate issues are being grouped here: the first is a usability issue (the lack of helpful affordances to let users know that they need to use arrow keys); but the second is a pretty major accessibility issue. If a user has enabled the 'Contain text cursor inside block' option, and that option prevents them from navigating the widget area, that's a serious issue, and needs to be addressed. I think these should be broken into separate issues.

  3. noisysocks commented on Feb 16, 2022

    @noisysocks
    Member

    Thanks for the issue. I suspect this is a side effect of us implementing the widget area using an internal "widget area" block. There's been some discussion in #33254 about whether that's the right approach.

  4. tellthemachines commented on Feb 28, 2022

    @tellthemachines
    ContributorAuthor

    The second issue is a side-effect of us using blocks for widget areas, but it's also not widgets-specific. When 'Contain text cursor inside block' is enabled, arrow keys can't be used to navigate between blocks at all. That's by design, but it means that to move between blocks we have to switch to Select mode.

    I misstated the problem when I said it's impossible to enter the widget area; it's only impossible while in Edit mode. But a user with that preference enabled will likely be aware of that, as it's the same behaviour as with any container block with inner blocks. It might be worth looking into ways of making navigation between blocks easier, but there's no straightforward solution to the problem - that's why Select mode was created in the first place, after much discussion 😅 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs Accessibility Feedback[Feature] Widgets Screen[Focus] Accessibility (a11y)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions