-
Notifications
You must be signed in to change notification settings - Fork 364
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add disclosure menu example for issue 1028 #1070
Conversation
…e content, updated title
1028 disclosure menu example
…code tags with quote chars
…e content, updated title
- Make title match H1 and adjust for consistency with other disclosure examples - Cross link disclosure and menubar implementations of site nav - Editorial revisions to introduction - Editorial revision to presentation of checkbox for toggling optional keyboard support - Editorial revisions to accessibility features section. - Revise checkbox label - Editorial revisions to keyboard table - Attributes table: add aria-current and replace named entities inside code tags with quote chars
@mcking65 regarding tests: About the I'll add a couple non-substantive changes to some formatting and typos before Tuesday. I also have some qualms about specifically calling out certain screen reader behaviors -- I think it might be better to keep it general (e.g."screen readers will usually intercept arrow key presses within this example markup") rather than get into specifics that don't apply across all screen readers. I'd also prefer to leave the sentence mentioning screen reader behavior out of the following list item, since I think it could read as if tabbing is only implemented for screen reader users:
Thanks again for the thorough editorial review and additions! |
@smhigley wrote:
Thank you! Our testing is to ensure the reliability of our examples and their documentation, so we still have to test the stuff that is "contrived" for illustrative purposes. That said, I don't think this pattern is limited to navigation among static pages. It could be used in a single-page app type of architecture. @smhigley wrote:
We have consistent descriptions of widget-related mode switching throughout the examples. True, some screen readers like Mac-VO and Narrator are manual switching while JAWS and NVDA are automatic. But, this widget-related behavior is still relevant for all screen readers that run on desktop systems where keyboards are a primary input method. One thing that is still in our backlog, though, is an appendix section that describes the mode switching features in more detail. When that is done, we will link to it from notes like this. I do appreciate your concern though. Rather than be more general though, I think it may be better to refine it further. @smhigley wrote:
We could explain this without mentioning screen reader users as part of the justification. However, I think the point begs for explanation since it is contrary to every other pattern that provides arrow, home, and end key support. I'll propose another wording. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…m/w3c/aria-practices into issue1028-disclosure-menu-example
…accessibility features section
@mcking65 I fixed and added tests! Should be good to go :) |
… features documentation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is now ready to go. @smhigley , would you like to give it one more look?
for (let b = 0; b < buttons.length; b++) { | ||
const links = await menus[b].findElements(By.css('a')); | ||
|
||
for (let l = 0; l < links.length; l++) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't want to block merging, just have an optional suggestion: the javascript that controls aria-current
will function the same regardless of which link is clicked, so it's only necessary to test on one link click and cut down on test time a little.
Otherwise, looks good! Thanks for writing this! (Also, changing the loops is entirely up to you, I don't want to hold up merging the PR)
Thanks @spectranaut and @mcking65! It looks like the Travis build failed on a timeout in an unrelated test, so I restarted it. If it passes, let's merge! |
Resolves #1028.
Continuation of PR #1036, which contains a long thread of relevant discussion.
Preview Link for WIP
View WIP on disclosure navigation menu example in the issue1028-disclosure-menu-example branch
Relevant comments from mcking65 in issue 1028
Edited to add preview link: https://raw.githack.com/w3c/aria-practices/issue1028-disclosure-menu-example/examples/disclosure/disclosure-navigation.html
Preview | Diff