Skip to content

Commit

Permalink
fix: CSS misbehaviors
Browse files Browse the repository at this point in the history
-- fix active calendar__tile with the wrong color when also hovering. This is particularly noticeable when updating a range with 'keepBoundarySelected'
-- fix focused calendar__tile with the same color as a hovered tile, causing it to remain "selected" when updating a range (and in other specific cases)
  • Loading branch information
G@briel Castilho committed Mar 8, 2024
1 parent 6d17e54 commit 800b883
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react-calendar/src/Calendar.css
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,7 @@
color: #cdcdcd;
}

.react-calendar__tile:enabled:hover,
.react-calendar__tile:enabled:focus {
.react-calendar__tile:enabled:hover {
background-color: #e6e6e6;
}

Expand Down Expand Up @@ -153,4 +152,5 @@

.react-calendar--selectRange .react-calendar__tile--hover {
background-color: #e6e6e6;
color: unset;
}

0 comments on commit 800b883

Please sign in to comment.