Opened 9 years ago
Closed 9 years ago
#32578 closed defect (bug) (fixed)
Admin menu: current item should have an aria-haspopup attribute when folded
Reported by: | afercia | Owned by: | wonderboymusic |
---|---|---|---|
Milestone: | 4.4 | Priority: | normal |
Severity: | normal | Version: | 4.2 |
Component: | Administration | Keywords: | has-patch commit |
Focuses: | accessibility, javascript | Cc: |
Description
See related: #32346
When the admin menu is folded or auto-folded (but not when in responsive view) the current menu item should have an aria-haspopup="true" attribute like all the other menu items since it does have a fly-out sub-menu.
Should probably be set and removed with JavaScript depending on the menu collapsed/expanded status.
With the attribute set, screen readers would correctly announce the menu item has a sub-menu, see screenshot below:
Reference:
http://www.w3.org/TR/wai-aria/states_and_properties#aria-haspopup
aria-haspopup (property)
Indicates that the element has a popup context menu or sub-level menu.
Attachments (2)
Change History (11)
#3
@
9 years ago
- Milestone changed from Awaiting Review to 4.4
To recap:
- currently, when the admin menu is expanded, the menu items with sub-items have an
aria-haspopup=true
attribute except the current active menu item which is displayed open and that's correct - by the way, when the admin menu is collapsed, also the current active menu item (with sub-items) should have an
aria-haspopup=true
attribute
First pass. Tries to detect when the menu is folded or auto-folded. Since the
auto-fold
CSS class on the body doesn't get removed in some cases, tries to detect whenwindow.innerWidth
is in the range> 782 and <= 960
. Would greatly appreciate some leads/committers JavaScript feedback.