Offcanvas navbar expand remaining aria-hidden
See original GitHub issuePrerequisites
- I have searched for duplicate or closed issues
- I have validated any HTML to avoid common problems
- I have read the contributing guidelines
Describe the issue
Following PR #34273.
An offcanvas navbar with .navbar-expand-${breakpoint}
can lead to a remaining aria-hidden="true"
, if the offcanvas is closed and the navbar is expanded again. This edge case happen when resizing the window on desktop or rotating an ipad (for instance).
Reduced test cases
https://codepen.io/florianlacreuse/pen/wvreVxN
What operating system(s) are you seeing the problem on?
Linux
What browser(s) are you seeing the problem on?
Chrome
What version of Bootstrap are you using?
v5.1.3
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:9 (9 by maintainers)
Top Results From Across the Web
Offcanvas · Bootstrap v5.0
Build hidden sidebars into your project for navigation, shopping carts, and more with a few classes and our JavaScript plugin.
Read more >Bootstrap Off Canvas Show Full Height - Stack Overflow
I included a Bootstrap nav bar, a separate offcanvas toggle button that only shows when the side bar is off canvas, and a...
Read more >Off-canvas | Foundation for Sites 6 Docs
Foundation's Off-canvas is a well established mobile pattern for navigation that can also be used to create a responsive sidebar. It can open...
Read more >Off-canvas Sidebar in Bootstrap 4 with Optional Overlay, Offset ...
Data attribute targeting to a class would fail to properly alter aria-expanded attribute value and further functioning. While the full-width off-canvas sidebar ...
Read more >Tailwind CSS Drawer (offcanvas) - Flowbite
The Drawer component can be used as a hidden off-canvas sidebar for navigation and to show other information based on multiple styles and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ll have a look…
did some refactoring… https://github.com/twbs/bootstrap/pull/35589