Focus not visible on Cover block background video #41989
Labels
[Block] Cover
Affects the Cover Block - used to display content laid over a background image
Browser Issues
Issues or PRs that are related to browser specific problems
Good First Issue
An issue that's suitable for someone looking to contribute for the first time
[Type] Bug
An existing feature does not function as intended
Description
Firefox includes
<video>
elements in the focus order (other browsers only include video controls, if present, in the focus order). The cover block's styling removesoutline
style from the element, preventing the browser's default focus outline from appearing.Removing the
outline
property from the CSS rule would allow the browser to use it's default focus outline. However, in some layouts an outline outside the<video>
element could be obscured; addingoutline-offset: -2px;
would position the outline over the element.Step-by-step reproduction instructions
<video>
element was focused.Screenshots, screen recording, code snippet
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
No
The text was updated successfully, but these errors were encountered: