Skip to content

Empty inner block area isn't keyboard accessible when contain text cursor inside block preference is enabled #36710

@tellthemachines

Description

@tellthemachines

Description

If the "Contain text cursor inside block" preference is enabled in the post editor, it is impossible to add a block to an empty inner block area using only the keyboard, for example, inside a newly-added Group or Submenu block.

When the text cursor is contained inside the block, it's not possible to use arrow key navigation between blocks in Edit mode, and in Navigation mode the block inserter isn't selectable.

I'm not sure what the best solution would be. Could add the inline inserter to the tabbing order perhaps?

Step-by-step reproduction instructions

  1. In Options > Preferences > Blocks, enable "Contain text cursor inside block".
  2. Add a Group block and try to open the inserter inside it with the keyboard only.
  3. In a Navigation block, add a Submenu and try to navigate to the inserter inside the submenu area with the keyboard only.

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

Metadata

Metadata

Labels

Needs Accessibility FeedbackNeed input from accessibility[Focus] Accessibility (a11y)Changes that impact accessibility and need corresponding review (e.g. markup changes).[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions