Skip to content
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

Fix failing contrast test in accessibility tools on docs site #1126

Merged
merged 2 commits into from
Dec 26, 2020

Conversation

wren
Copy link
Member

@wren wren commented Dec 20, 2020

There were just a few remaining accessibility fixes needed for jrnl.sh. These don't really affect newer browsers, but the older browsers that are built in to some accessibility tools get confused by the way we were doing gradients. Our test suite detected everything properly, but some other tools (like color.a11y.com) use older browsers, so we were still failing tests there.

So, other than one small color change, this PR shouldn't affect what the site looks like at all, and is mostly to make sure public accessibility tools pass for our site (and to assure users we care).

Checklist

  • I have read the contributing doc.
  • I have included a link to the relevant issue number.
  • I have tested this code locally.
  • I have checked to ensure there aren't other open pull requests
    for the same issue.
  • I have written new tests for these changes, as needed.
  • All tests pass.

This is both for old browser support, and for accessibility. Some
accessibility tools turn off gradients since they can make text hard to
read for those with visual impairment.
The mobile header was using a light-purple to dark-purple gradient, even
though every other gradient on the site is mid-purple to dark-purple.
This commit changes that both for consistency on the site, and because
light-purple causes an accessibility issue with the white text in the
header (even though the accessibility tools don't notice because of the
gradient).
Copy link
Member

@micahellison micahellison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟪

@micahellison micahellison added the documentation Improvements or additions to documentation label Dec 26, 2020
@micahellison micahellison changed the title Small fixes for accessibility tools on docs site Fix failing contrast test in accessibility tools on docs site Dec 26, 2020
@micahellison micahellison merged commit 870f9ae into jrnl-org:develop Dec 26, 2020
@wren wren deleted the a11y.com-contrast-fix branch December 28, 2020 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants