Skip to content

Commit

Permalink
Highlight today in DatePicker
Browse files Browse the repository at this point in the history
  • Loading branch information
noisysocks committed Jun 10, 2022
1 parent 817f0fd commit 1b67157
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/components/src/date-time/date/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,19 +53,29 @@
border: none;
font-size: $default-font-size;
border-radius: $radius-round;
background: $white;

&:hover {
color: var(--wp-admin-theme-color);
}

&:focus {
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color), inset 0 0 0 #{ $border-width-focus + $border-width } $white;
outline: 2px solid transparent; // Shown in Windows 10 high contrast mode.
}
}

.CalendarDay__today {
background: $gray-100;
}

.CalendarDay__selected {
background: var(--wp-admin-theme-color);
border: 2px solid transparent; // This indicates selection in Windows 10 high contrast mode.

&:hover {
background: var(--wp-admin-theme-color-darker-20);
color: $white;
}

&:focus {
Expand Down

0 comments on commit 1b67157

Please sign in to comment.