gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

Social Icons block can't be operated with the keyboard

Open afercia opened this issue 1 year ago • 2 comments

Description

Discovered while working on https://github.com/WordPress/gutenberg/issues/60044 / https://github.com/WordPress/gutenberg/pull/60047

After inserting a first social link inside the Social Icons block, I couldn't find a way to add more links when using the keyboard.

Also, focus indication is some of the editing steps is missing.

Step-by-step reproduction instructions

  • Edit a post, add a Social Icons block.
  • At this point, focus is on the empty parent block. Screenshot:

Screenshot 2024-03-22 at 16 02 46

  • Press tab and observe focus moves to the 'Add block' plus icon button. Screenshot:

Screenshot 2024-03-22 at 16 05 51

  • Observe the focus indication is missing.
  • Press Enter and a popover to add social links opens.
  • Select one of the social links and press Enter.
  • The first social link is added. Screenshot:

Screenshot 2024-03-22 at 16 03 24

  • Observe the focus indication is missing.
  • At this point, I couldn't find a way to move focus again to the 'Add block' plus icon button, Tab or Arrows key do different things.
  • The process requires to move focus to the parent block first. This isn't easy with the keyboard but can be done.
  • From there:
    • Tab moves focus to the Settings panel. This is the expected behavior.
    • Arrow keys move focus to the inner blocks, which is the first social link.
    • Couldn't find any way to focus the 'Add block' plus icon button.

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

afercia avatar Mar 22 '24 15:03 afercia

The same issue occurs when adding Social links in a Navigation block. I couldn't find a way to mote keyboard focus to the 'plus' icon after adding a first social link:

Screenshot 2024-03-25 at 10 03 02

afercia avatar Mar 25 '24 09:03 afercia

@afercia, the #59303 should improve situation a bit by making insert before and after shortcuts available for the inner blocks.

Mamaduka avatar Mar 26 '24 04:03 Mamaduka