-
Notifications
You must be signed in to change notification settings - Fork 355
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
Jump To Content: Add menu button to examples to implement WCAG bypass blocks requirement #1923
Conversation
@mcking65
|
@jesdaigle @mcking65 |
I have completed another test to see if I can identify the problem with menu button link test failing. |
I merge #1921 and rebased this PR and the menu button tests are still failing. Thoughts? |
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 love how this works on Windows with JAWS and NVDA in Chrome and Firefox. On example pages, if you know where you want to go, it is super fast. For instance, if you want to go to the keyboard section, just press the jump key and then the letter 'k' and enter. Because of the letter key navigation in the menu, it is much faster than any screen reader technique. Well, you could list headings, but that is a more difficult key press and, depending on screen reader, more steps.
Unfortunately, on MacOS with VoiceOver running, it is not as good. In Chrome, ctrl-opt-0 works if you pass the key through with ctrl-opt-tab first, which is quite awkward. But, in Safari, there is no way to get it to work that I can find.
I wonder if we should consider scripting the key to be opt-0 or alt-0 regardless of browser or operating system. Then it would work regardless of what screen reader is running. That would mean that we could never use alt+0 in an example, but I don't think that is an issue. Would it have any other downsides? Could it create other conflicts with example code?
@jongund If I use the mouse click for the jump to menu, there is no focus ring around the landmark and heading items. |
@carmacleod @smhigley |
Visual review -
|
@mcking65
The appropriate keyboard short cut is now part of the button label. Mobile devices currently do not have the scripted shortcut, or do want them to? I also investigated the keyboard focus ring issue on the target landmark or heading raised by Jemma, not sure why it shows for keyboard activation and not for mouse click o a menu item since it uses the same code to move focus. But functionally it still scrolls to the location in the page and tab navigation starts from that point. So if it is important maybe someone else can look into it. |
Android mobile testing- since the page is not mobile responsive, there is challenge for touch point size. |
APG group decided on pushing this issue aside since APG redesign project is going on. |
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.
APG will take care of 1) mouse click focus issue, 2)mobile touch due to lack of responsive design later.
@mcking65 |
@mcking65 |
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.
Tested in chrome/windows, FF/Windows, Chrome/macOS, and Safari/macOs. Functionality with screen readers is good. The scripted key command works much better on Mac when VO is running. QuickNav has to be off, but that is a minor constraint beyond our control.
@mcking65 |
@mcking65 |
This is an update to pull #1860 that got too out of synch with
main
branch, but still has a failing regression tests for the menu button link example.NOTE: The menu button link example and tests are not modified in this pull request.
Features:
jumpto.js
app.js
to add the appropriate reference to each example.preview link for index of examples
preview link for button example
preview link for checkbox 1 example