Closed duhrer closed 4 months ago
The next time I get into a broken state, I'd like to:
document.targetElement
is.In further testing for #161, I discovered that:
:focus
rather than only :focus-visible
styles.document.activeElement
is being set correctly when triggering focus.This suggests to me that this is indeed the same issue. Leaving this open until I can get the menus in a state to confirm.
I think I'm going to close this one once #164 is merged.
We now have a clearer explanation for why
:focus-visible
styles aren't always applied when we use bumper navigation (see #161).However, the problems described in #161 don't explain why I can occasionally get into a state where modals don't display focus. All of those styles use
:focus
(in fact we don't use:focus-visible
anywhere in our code base).This ticket tracks research into modal focus problems like this.