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
Ensure there's enough contrast on the grid axis lines #1199
base: main
Are you sure you want to change the base?
Conversation
GeraldRequired Reviewers
Don't want to be involved in this pull request? Comment |
npm Snapshot: PublishedGood news!! We've packaged up the latest commit from this PR (f41a938) and published it to npm. You Example: yarn add @khanacademy/perseus@PR1199 If you are working in Khan Academy's webapp, you can run: ./dev/tools/bump_perseus_version.sh -t PR1199 |
Size Change: +6.56 kB (+1%) Total Size: 833 kB
ℹ️ View Unchanged
|
8c377b5
to
8c32af9
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1199 +/- ##
==========================================
+ Coverage 68.45% 72.89% +4.43%
==========================================
Files 464 476 +12
Lines 99389 101116 +1727
Branches 7047 13091 +6044
==========================================
+ Hits 68040 73705 +5665
+ Misses 31234 27411 -3823
+ Partials 115 0 -115
... and 182 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
… match more closely to the legacy positioning
56784db
to
83c86de
Compare
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 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.
@SonicScrewdriver LGTM!
Summary:
During the playtest we discovered that the axis tick grid lines are far too light on several different devices. This PR updates the gridlines to use a close approximation to OffBlack32.
As a result of increasing the contrast of these grid lines, I felt the axis tick labels were getting a little harder to read. After checking with design, I've added a white stroke to these labels. This greatly increases readability of our graphs.
Example of old graph contrast:
Issue: LEMS-1925
Test plan:
Screenshots:
Contrast Comparison:
We don't pass the WCAG rules for text, but I don't think we actually have to for the grid lines. I will confirm with design that the new contrast level is sufficient. The previous grid line color is above with a ratio of 1.12. The contrast ratio after the changes is 1.84, and appears far more legible.