In testing with Weavly, I can consistently get into a state where the optional focus indicator remains in the position of the last focused element within the modal, even after the modal closes.
I notice that the the last focused element does not receive focus either. So we have two problems:
There always needs to be a blur to clear the focus indicator in the modal, whether or not anything is focused in the rest of the page.
Whenever possible, focus should be restored when closing a modal.
The current steps I'm using to reproduce this are:
In testing with Weavly, I can consistently get into a state where the optional focus indicator remains in the position of the last focused element within the modal, even after the modal closes.
I notice that the the last focused element does not receive focus either. So we have two problems:
The current steps I'm using to reproduce this are: