Skip to content

Commit

Permalink
Date Picker Calendar Grids: Fix color contrast for selected date (pull
Browse files Browse the repository at this point in the history
…#1479)

Resolves issue #1478 for both the date picker dialog example and the combobox date picker example 
by using dark background with white text for the selected date cell in the calendar grid.

Co-authored-by: Matt King <a11yThinker@Gmail.com>
  • Loading branch information
carmacleod and mcking65 committed Sep 1, 2020
1 parent adb0de5 commit 70c3646
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/combobox/css/combobox-datepicker.css
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,10 @@
}

.combobox-datepicker .dates td[tabindex="0"] {
background-color: hsl(216, 80%, 92%);
background-color: hsl(216, 80%, 51%);
color: white;
}

.combobox-datepicker .dates td:focus,
.combobox-datepicker .dates td:hover {
padding: 0;
background-color: hsl(216, 80%, 92%);
Expand Down
3 changes: 2 additions & 1 deletion examples/dialog-modal/css/datepicker-dialog.css
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,8 @@
}

.datepicker-dialog table.dates td[tabindex="0"] {
background-color: hsl(216, 80%, 92%);
background-color: hsl(216, 80%, 51%);
color: white;
}


Expand Down

0 comments on commit 70c3646

Please sign in to comment.