Open MMK21Hub opened 1 year ago
I honestly don't see the need to fix this because you don't have a tab on tablet/mobile devices, so it won't be an issue.
Hi! There are a few cases I can see where you might encounter this bug. Firstly, the bottom navigation bar shows on any narrow viewport regardless of device type, meaning that keyboard-based navigation is degraded if I happen to be using Modrinth in a smaller window. Secondly, while I haven't used such accessibility tools on my phone, I'd imagine tools such as TalkBack would rely on the accessibility tree being representative of the visual state of the app to accurately give audio feedback.
Finally, I am the kind of mad person who would plug a USB keyboard into their phone just for fun, which would lead to me being affected by this issue :sweat_smile:
modrinth/code#1624 was a similar bug with the old bottom navigation bar, although it arguably hindered usage more than this bug does.
Describe the bug
When on a viewport narrow enough to use the bottom navigation bar (
>1095px
), buttons, links and multiselects that aren't part of the menu can still be focused on (using that Tab key) and activated (using the Enter key).Steps to reproduce
Expected behavior
Focus would "loop back" to the start of the modal, or it would "tail off" and some other part of the browser UI would gain focus.
Screenshot