Open alexgibson opened 4 years ago
The menu list component could benefit from some a11y improvements.
tab
enter
esc
click
The menu remains open for all of the above items. The only way to close a menu currently is to click the title again.
Firefox Nightly (but happens in any browser)
See also #478
I was lazy and re-used the Javascript from the details component for this. The details component should probably not get these enhancements so we may have to split them apart.
Description
The menu list component could benefit from some a11y improvements.
Steps to reproduce
tab
so the menu list is focused.enter
to open the menu.Expected result
esc
when open, it should close the menu.click
anywhere outside of the menu whilst open, the menu should close again.tab
through the menu items and past the last item in the list, then the menu should close when focus leaves the element.Actual result
The menu remains open for all of the above items. The only way to close a menu currently is to click the title again.
Environment
Firefox Nightly (but happens in any browser)