Skip to content

Commit

Permalink
♿ Improve accessibility with contrast colors in dark date picker focu…
Browse files Browse the repository at this point in the history
…s and hover ♿
  • Loading branch information
Aszurar committed Jan 22, 2024
1 parent f57034a commit f0dbf7b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/components/DatePicker/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,21 @@ export function DatePicker({
color: ${CSSTheme.daySelected.hover.color};
font-weight: 600;
}
.rdp-button:focus-visible:not([disabled]):not(.rdp-day_selected):focus-visible {
background-color: ${CSSTheme.daySelected.hover.backgroundColor};
color: ${CSSTheme.daySelected.hover.color};
font-weight: 600;
border: 0;
}
.today:focus-visible {
background-color: ${CSSTheme.today.hover.borderColor} !important;
}
.today:focus-visible:hover {
color: ${CSSTheme.daySelected.hover.backgroundColor} !important;
opacity: 0.8;
}
`

let footer = (
Expand Down

0 comments on commit f0dbf7b

Please sign in to comment.