-
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
Infrastructure: Fix color contrast failure in HTML source display #2939
Conversation
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.
Nice fix! I didn't understand 100% about the change from the "
" to "\n" so in addition to checking this example I went through about half of the examples just verifying that they all look right, as well as reading them with a screen reader. Everything seems perfect. Happy to approve.
@alflennik The change from |
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.
@a11ydoer could you also confirm this resolves the issue as expected? |
/*! | ||
Highlight.js v11.9.0 (git: b7ec4bfafc) | ||
(c) 2006-2023 undefined and other contributors |
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.
Looks like the license export might have glitched
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.
@nschonni thanks for catching this. I just downloaded the file for consumption. Is there a good way to fix this?
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.
Not sure, maybe it was a temporary glitch on the site generator, assuming that's how you grabbed it
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.
@nschonni Yes, I just went to the downloads page and grabbed it there.
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.
Yep confirming I'm also getting undefined
from the exporter at https://highlightjs.org/download. We could make an assumption about that name based on the repository's LICENSE, though we shouldn't include it here.
Seems like something we can make an issue about on their repository and update this file when that's fixed.
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.
There is now an open issue to track this bug, highlightjs/highlight.js#4016
The ARIA Authoring Practices (APG) Task Force just discussed The full IRC log of that discussion<jugglinmike> subtopic: Infrastructure: Fix syntax highlighting bug on examples by evmiguel · Pull Request #2939 · w3c/aria-practices<jugglinmike> github: https://github.com//pull/2939 <jugglinmike> Matt_King: I think this needs a visual review <jugglinmike> Jem: I will do it |
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.
Thanks for fixing the inconsistent color coding issues while you are also updating the package. They look great.
This PR addresses #2815. I upgraded highlight.js to get the latest features, as we were behind a few major versions.
WAI Preview Link (Last built on Thu, 29 Feb 2024 15:49:24 GMT).