Skip to content

Details block: impossible to get out from block, using a keyboard #56263

@talksina

Description

@talksina

Description

The block called "details", used in case of inserting a spoiler, has a problem in keyboard navigation: it's impossible to quickly get out from the "detail" block after having written both Summary and Detail parts.
Current result: add Details block, write summary then detail. To get out of the block and add a new one, it's necessary to close the Gutenberg's editing mode switching to navigation mode by pressing Escape key, then press left arrow to Details block, in order to exit it.
Expected result: after writing Summary and Detail -with all content desired for detail-, press "Enter" key twice and it should exit the block, as it does in quotes and lists nested blocks.

Step-by-step reproduction instructions

  1. open an empty post, then add a Details block.
  2. add the Summary. Then the Detail.
    1. press "Enter" key twice, and it will remain in Details without exiting the block.
  3. this applies both with screen reader uses -JAWS, NVDA,VoiceOver-,and without.

Screenshots, screen recording, code snippet

No response

Environment info

Gutenberg latest stable 17.x build, WordPress 6.4.1, theme twenty-twentyfour and applies to all themes

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

Assignees

Labels

Needs TestingNeeds further testing to be confirmed.[Block] DetailsAffects the Details Block - used to display content which can be shown/hidden[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