Example Disclosure Navigation Menu incorrectly mentions the support of Esc key as required to meet 1.4.13 #2261
Labels
editorial
Changes to prose that don't alter intended meaning, e.g., phrasing, grammar. May fix inaccuracies.
Example Page
Related to a page containing an example implementation of a pattern
Feedback
Issue raised by or for collecting input from people outside APG task force
question
Issue asking a question
In this example: https://www.w3.org/TR/wai-aria-practices/examples/disclosure/disclosure-navigation.html
we can read:
Although I fully agree that supporting the Esc key is beneficial to users, I think its justification is incorrect here. SC 1.4.13 applies to content appearing on focus, not when it's displayed after user action (a press on the top-level menu button here). Besides, this also provides a compliant method to meet SC 1.4.13, since user can press the button again to dismiss the menu, considering the focus is still on the button -- which is the scope of this SC.
Again I'm totally in favor of promoting this practice, but I think it's problematic to incorrectly invoke WCAG to make them say what they don't, in this document more than anywhere else.
My suggestion: change the article to explain the added benefit, without presenting it as a requirement as per the WCAG; and in a second time, consider pushing this #1571 into a future version of the pattern, if it's deemed worthy of it.
The text was updated successfully, but these errors were encountered: