Open corymharper opened 1 year ago
The ARIA Authoring Practices (APG) Task Force just discussed Escape in disclosure nav menu
.
@corymharper,
Re-reading this after our meeting discussion today, I think I understand your concern.
Would it address your concern if we were to change the accessibility features text to the following?
If a dropdown is open and focus is inside the navigation region, pressing Esc closes the dropdown and sets focus on the button that controls that dropdown. Moving focus out of the navigation region also closes an open dropdown.
@corymharper,
Re-reading this after our meeting discussion today, I think I understand your concern.
Would it address your concern if we were to change the accessibility features text to the following?
If a dropdown is open and focus is inside the navigation region, pressing Esc closes the dropdown and sets focus on the button that controls that dropdown. Moving focus out of the navigation region also closes an open dropdown.
This would address the issue of documentation I think, yes. There was this second issue I mentioned that I either need clarification on or I would assume it was a bug:
Secondly, the same things are true about Example Disclosure Navigation Menu with Top-Level Links however there is a novel bug in the implementation of the example, where if focus is on one of the top level links pressing "Escape" does nothing at all, this seems to be in conflict with the description of what should happen if you press escape while in the navigation region.
The top-level links are in the navigation region, based on the documentation I would expect that if a disclosure menu was open, and focus was on a top-level link within the navigation region, when "Escape" was pressed the open disclosure menu would also close. Is this an incorrect interpretation? Currently, the disclosure menu stays open if your focus is not in the disclosure, but on a top-level link when you press "Escape".
In Example Disclosure Navigation Menu we can see the following under "Accessibility Features":
Then under "Keyboard Support" we can see the following behavior described for the "Escape" key:
Both described behaviors seem to be implemented, but I'm not sure why the description of the two differing behaviors based on where focus currently is is split up in these two locations, if someone read one and not the other, they'd miss an implementation detail.
Secondly, the same things are true about Example Disclosure Navigation Menu with Top-Level Links however there is a novel bug in the implementation of the example, where if focus is on one of the top level links pressing "Escape" does nothing at all, this seems to be in conflict with the description of what should happen if you press escape while in the navigation region.