You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On small screen sizes, when the top navigation turns to off-canvas, the links/controls inside it are still keyboard-focusable despite not being visible
#25524 fixed the issue when the navbar is closed. probably when the navbar is open, the main content of the page should not be focusable as it's behind the open menu (acting like a modal, in effect)...but as this is just a simple example (which, incidentally, fails in IE11) we can probably live with that for now...
On small screen sizes, when the top navigation turns to off-canvas, the links/controls inside it are still keyboard-focusable despite not being visible
https://getbootstrap.com/docs/4.0/examples/offcanvas/
Normally we'd add
display:none
when the menu is closed, but flipping betweendisplay:none
anddisplay:block
here kills the animation.If
inert
attribute was well supported cross-browser, that would be an approach...but it's a bit early for that (perhaps using polyfill?).But in short: currently this is a classic example of what not to do, accessibility-wise.
The text was updated successfully, but these errors were encountered: