Enhance text contrast of light
theme to improve accessibility.
#1470
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.
This PR aims to address #1442, and is a refinement of PR #1353 based on feedback there, and also on the WebAIM mailing list, in the replies to this post:
https://webaim.org/discussion/mail_message?id=45812
Principle differences from earlier revisions posted in #1353 are:
light
theme (instead of a separate and newcontrast
theme).Of the changes, I'm least certain about the last one (title text size). If people feel that it's now too big, an alternative would be to restore the size of the title text, and further increase its contrast (by introducing a new theme colour for it) instead.
Commit text follows:
The existing light theme has relatively low contrast between the text
(and other UI elements) and background (especially within code blocks).
This presents difficulties for people with reduced visual contrast
perception (common in older adults).
This patch makes changes to the default
light
theme to meet theminimum contrast requirement of the v2.1 W3C WCAG (Web Content
Accessibility Guidelines)
https://www.w3.org/WAI/WCAG21/quickref/#contrast-minimum
The small size, and slender font used for the title text makes it hard
to read, even with the increased contrast colour scheme, so this patch
also increases the size of the title text font by 20%.
Closes #1442