Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
(enh) improve default theme accessibility #3402
(enh) improve default theme accessibility #3402
Changes from 5 commits
3ef4a1b
e5b6e11
19d3457
6865cb7
c77be2f
c9c65f7
96169f2
ba32428
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
Two notes on this one:
Some styles use
background-color
to differentiate the background for specific elements. I think we should add support for checkingbackground-color
for WCAG contrast.highlight.js/src/styles/foundation.css
Lines 74 to 77 in 0bf3ade
Should we have a minimum Node defined somewhere for dev environments? Optional chaining was added in Node 14 and our
package.json
requires Node 12+ (correctly so, for our users).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.
Ah, we probably should, but where... damn old versions of Node. :-)
I'll break this out into a separate issue... the tool doesn't have to be perfect for the main thrust of this to be mergeable.
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.
We have some themes that use
rgba()
, will.hex()
work on those values?highlight.js/src/styles/arduino-light.css
Lines 52 to 54 in 0bf3ade
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.
nitpick
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.
As you point out this isn't supported everywhere so I'm going to slow down with it until we figure our how/where to specify that dev work requires newer versions...