Skip to content

Button Block: Adding close button on the link control toggle or allow to close it using Esc key #34307

@TeBenachi

Description

@TeBenachi

Description

While I was testing for the FSE Program testing, I noticed there was no way to close the Button link toggle using Keyboard.

Step-by-step reproduction instructions

  1. Create a button and enter text link
  2. Open the link control toggle by using Ctrl+K or ⌘+K
  3. Once the toggle opens, search a post or page in the search bar
  4. Select a post or page using down arrow key
  5. Click Tab, and Enter to submit

Once submitted, the link control toggle stays open, and keyboard focus loops within the toggle.

I tried using the Esc key and the arrow keys but could not figure out a way to close the toggle.

Screenshots, screen recording, code snippet

screenshot1

Environment info

No response

Pre-checks

  • I have searched the existing issues.
  • I have tested with all plugins deactivated except Gutenberg.

Metadata

Metadata

Assignees

Labels

[Block] ButtonsAffects the Buttons Block[Focus] Accessibility (a11y)Changes that impact accessibility and need corresponding review (e.g. markup changes).[Priority] HighUsed to indicate top priority items that need quick attention[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions