-
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
Skipto menu on all pages: Update skipto.js script to version 5.1.6 #2680
Conversation
Thank you for opening this PR with the correct version of the library - since we decided to move this library to the wai-aria-practices repo I copied the new version over there and the PR is w3c/wai-aria-practices#217. If that makes sense could you close this PR? |
What ever works for the templates, but please use version 5.1.6 for all templates, since it will correctly identify if skipto.js is being loaded more than once. |
@alflennik |
Updated default configuration for APG be changing `attachElement` to `div` and default `colorTheme` to `aria`.
@alflennik
More information on configuration options: |
The ARIA Authoring Practices (APG) Task Force just discussed The full IRC log of that discussion<jugglinmike> subtopic: updated skipto.js script to 5.1.6<jugglinmike> github: https://github.com//pull/2680 <jugglinmike> Matt_King: Is there another way to do this without requiring all the HTML source to be edited? Specifically, a way that would be straightforward to anyone using skipTo <jugglinmike> jugglinmike: the RequireJS library was configurable via the HTML script tag which included it. We could configure skipTo with a "data-" attribute, if skipTo were updated to recognize such an attribute <jugglinmike> Matt_King: I think we want to merge gh-2680 and then get alignment on whether or not the HTML files in ARIA-Practices with have a script tag for skipto.js or not (and if not, where the injection will be done). From there, we can simplifying this aspect of configuration |
@alflennik @mcking65
|
The ARIA Authoring Practices (APG) Task Force just discussed The full IRC log of that discussion<jugglinmike> Subtopic: updated skipto.js script to 5.1.6<jugglinmike> github: https://github.com//pull/2680 <jugglinmike> Matt_King: I know there's a version 5.2, so I'm wondering if we should merge this as-is. Maybe at a later time, we could upgrade again <jugglinmike> jongund: This pull request should work according to the needs of the WAI site <jugglinmike> Matt_King: Okay, I'm going to go forward with that, and we can add this to the list of changes for publication <jugglinmike> Matt_King: When you're ready jongund, we can upgrade to the parameterized version of skipTo.js. That will simplify maintenance going forward |
@charmarkk @ariellalgilmore @andreancardona @curtbellew @shirsha Are any of you available to do a quick review/test to ensure there are no regressions or new issues in this version of the skipto menu? This is the preview link to test. I am specifically looking for test of visual appearance, keyboard, and mouse behavior in:
I have tested with screen readers. |
The ARIA Authoring Practices (APG) Task Force just discussed The full IRC log of that discussion<jugglinmike> subtopic: Skipto menu on all pages: Update skipto.js script to version 5.1.6 by jongund · Pull Request #2680 · w3c/aria-practices<jugglinmike> github: https://github.com//pull/2680 <jugglinmike> Matt_King: I tested this with screen readers to make sure there have been no regressions, but I'm looking for help to verify that there have been no visual regressions <jugglinmike> Matt_King: the deadline for review will probably be at least two weeks <jugglinmike> arigilmore: I can take a look <jugglinmike> Matt_King: Thanks! I'll assign you |
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.
LGTM visually on browsers!
The ARIA Authoring Practices (APG) Task Force just discussed The full IRC log of that discussion<jugglinmike> Subtopic: Skipto menu on all pages: Update skipto.js script to version 5.1.6<jugglinmike> github: https://github.com//pull/2680 <jugglinmike> Matt_King: This was awaiting review <jugglinmike> Matt_King: ariellalgilmore has approved the visual appearance. That's what I was looking for. Maybe this is ready to go |
Overall it looks good to me. One thing I am curious about is that there is no focus indicator only for complementary landmark. @jongund, Is this perhaps the intended design? |
@a11ydoer |
This update fixes the following issues:
skipto.js
will only load once, if theskipto.js
is loaded more than once the successive loadings will be ignored and send a warning message to the console.WAI Preview Link (Last built on Thu, 11 May 2023 14:18:55 GMT).