From 4b00aa6c4ec9281ad27659babb0e208ab6cdeafa Mon Sep 17 00:00:00 2001 From: "Patrick H. Lauke" Date: Tue, 19 Feb 2019 09:25:37 +0000 Subject: Remove incorrect aria-haspopup from dropdown toggles (#28299) `aria-haspopup` use requires the use of an ARIA `menu`, `listbox`, `tree`, `grid` or `dialog` (see https://www.w3.org/TR/wai-aria-1.1/#aria-haspopup) in our use (as generic disclosure widgets), it's incorrect and sets up the wrong assumption/behavior from assistive technologies. in future, we likely want to change our dropdowns to essentially be like a `dialog` - move focus to it when opened, possibly make it modal so focus is maintained inside it and the rest of the page is hidden/inert. but for now, removing the incorrect attribute is probably the quickest, most immediate fix. --- js/tests/visual/dropdown.html | 26 +++++++++++++------------- js/tests/visual/scrollspy.html | 2 +- js/tests/visual/tab.html | 10 +++++----- 3 files changed, 19 insertions(+), 19 deletions(-) (limited to 'js/tests/visual') diff --git a/js/tests/visual/dropdown.html b/js/tests/visual/dropdown.html index e8dd3520d..01cb34abc 100644 --- a/js/tests/visual/dropdown.html +++ b/js/tests/visual/dropdown.html @@ -28,7 +28,7 @@ Link