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

Datepicker Example: Increase colour contrast ratio to pass WCAG (#1170) #1172

Merged
merged 3 commits into from
Oct 25, 2019

Conversation

ZoeBijl
Copy link
Contributor

@ZoeBijl ZoeBijl commented Sep 18, 2019

Corrected the colour contrast of various UI elements so that they pass WCAG minimums.

Resolves #1170

@ZoeBijl ZoeBijl added the Example Page Related to a page containing an example implementation of a pattern label Sep 18, 2019
@ZoeBijl ZoeBijl changed the title #1170: Correct datepicker colour contrast Datepicker Example: Increase colour contrast ratio to pass WCAG (#1170) Sep 21, 2019
Copy link
Contributor

@smhigley smhigley left a comment

Choose a reason for hiding this comment

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

Color contrast looks great! There are a few Windows high contrast mode bugs, if you're feeling like including those in this PR:

  • The calendar icon button's focus isn't visible in HCM, because the border color is the only change (both transparent and colored borders show up the same in HCM)
  • The currently selected day isn't visible in HCM
  • The focus style for the currently focused day (.dateButton:focus) is very hard to perceive in HCM

Windows HCM screenshot showing the unfocused icon border, no visible selected date, and focus on the 9th:
open datepicker in high contrast dark mode showing visible borders but no focus indication

Side note -- I'm not sure why, but when you change months with the previous/next month buttons, a day with the same date as the currently selected date has a slight background highlight. If that's intentional it's a contrast issue, but I'm half-guessing it's a separate bug

@a11ydoer a11ydoer requested review from jongund and removed request for mcking65 October 22, 2019 18:44
@ZoeBijl
Copy link
Contributor Author

ZoeBijl commented Oct 25, 2019

@smhigley I moved the high contrast issues to #1132. More specifically, this comment in that thread. Could you file a separate issue for the date/month switching thing?

@ZoeBijl ZoeBijl merged commit bdc8b77 into master Oct 25, 2019
@ZoeBijl ZoeBijl deleted the 1170-datepicker-contrast branch October 25, 2019 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Example Page Related to a page containing an example implementation of a pattern
Projects
None yet
Development

Successfully merging this pull request may close these issues.

datepicker has insufficient contrast
2 participants