]> git.ipfire.org Git - thirdparty/bootstrap.git/commit
Remove aria-haspopup from dropdowns (#33624) 33729/head
authorPatrick H. Lauke <redux@splintered.co.uk>
Thu, 15 Apr 2021 03:35:54 +0000 (04:35 +0100)
committerGitHub <noreply@github.com>
Thu, 15 Apr 2021 03:35:54 +0000 (06:35 +0300)
commitd9675539139c21503dce7e3c567dbaac856bb138
tree644f314403fcd75ec19f353b0378e1c8ab7f472c
parent016f8fff115623e3d51ebd3ef7ea1a835f553f75
Remove aria-haspopup from dropdowns (#33624)

`aria-haspopup="true"` is really intended to signal that an ARIA `menu` will be opened on activation. as a result, some assistive technologies will announce controls with `aria-haspopup="true"` as a menu or menu item (e.g. JAWS and NVDA).
In addition, `aria-haspopup` seems to trigger a bug in Edge/Narrator where the `aria-expanded` state is not correctly announced at the moment when `aria-haspopup` is present.
This now makes the dropdown button more like a generic disclosure widget control - see also https://www.w3.org/TR/wai-aria-practices-1.2/examples/disclosure/disclosure-navigation.html01
16 files changed:
js/tests/unit/dropdown.js
js/tests/visual/dropdown.html
js/tests/visual/scrollspy.html
js/tests/visual/tab.html
site/content/docs/4.6/components/button-group.md
site/content/docs/4.6/components/dropdowns.md
site/content/docs/4.6/components/input-group.md
site/content/docs/4.6/components/navbar.md
site/content/docs/4.6/components/navs.md
site/content/docs/4.6/components/scrollspy.md
site/content/docs/4.6/examples/jumbotron/index.html
site/content/docs/4.6/examples/navbar-bottom/index.html
site/content/docs/4.6/examples/navbars/index.html
site/content/docs/4.6/examples/offcanvas/index.html
site/content/docs/4.6/examples/starter-template/index.html
site/layouts/partials/docs-navbar.html