Gutenberg: Audio and Video blocks: the toolbar "Edit" button disappears or re-appears in a different position

Created on 7 Jun 2019  路  6Comments  路  Source: WordPress/gutenberg

Noticed in the Audio and Video blocks.

When clicking on the "Edit" button in the block toolbar, the button disappears. Depending on the interaction mode (mouse, keyboard) I've noticed different behaviors that I wasn't able to reproduce consistently. Also, not sure if there's a difference between Gutenberg in core (WordPress 5.3-alpha) or the plugin (currently 5.8.0).

Anyways, then the button disappears:

  • there's a focus loss: this shouldn't happen as it's a terrible experience for keyboard users and assistive technology users
  • there's no way to switch back from the block "placeholder" to the view with the embedded media other than:

    • click on "Insert from URL"

    • the embedded media URL is still there

    • click "Apply"

At this point, the "Edit" button re-appears, sometimes in the same location and sometimes... at the beginning of the toolbar. Couldn't reproduce consistently.

To clarify, I made two animated GIFs. To reproduce, sometimes the disappearing doesn't happen the first time "Edit" is clicked, so try multiple times.

Gutenberg version included in wp trunk 5.3:

audio edit disappearing

Gutenberg plugin 5.8.0:

audio edit disappearing plugin

Accessibility (a11y) [Block] Audio [Block] Video [Feature] Media [Type] Bug

All 6 comments

@draganescu hi! Do I recall correctly you fixed this?

Hi @afercia it is work in progress. I've been away for the past 2 weeks. I am working on implementing a component that should replace / refactor this whole edit flow thing on all the affected components here:

16200

Thanks @draganescu !

This reminds me of #15641.

We now use the MediaReplaceFlow component in all media related blocks. See #19162

Was this page helpful?
0 / 5 - 0 ratings