Font Library: Focus loss when deleting fonts and possibly other flows #58893
Labels
[Feature] Font Library
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
[Type] Bug
An existing feature does not function as intended
Description
I'm not sure this ha been already tracked but there are more focus losses in the FOnts modal dialog than the one already fixed in #58314
For example, when deleting a font the whole content of the modal dialog updates and the delete button that had keyboard focus disappers. As such, focus is entirely lost. Pressing tab again starts the tab sequence from scratch from the document root outside of the modal dialog which is something that should never ever happen.
See attached animated GIF to better illustrate.
Possibly, there are more flows where focused element get dynamically hidden / removed thus triggering more focus losses.
Step-by-step reproduction instructions
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
The text was updated successfully, but these errors were encountered: