Skip to content

Commit

Permalink
🐛🎨 Update the hover style to be applied only to the non-disabled cale…
Browse files Browse the repository at this point in the history
…ndar items

Closes #4986
  • Loading branch information
Balaji Sridharan committed Jul 18, 2024
1 parent 0bd3acc commit 08cdae9
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions src/stylesheets/datepicker.scss
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ h2.react-datepicker__current-month {
.react-datepicker__year-text {
cursor: pointer;

&:hover {
&:not([aria-disabled="true"]):hover {
border-radius: $datepicker__border-radius;
background-color: $datepicker__background-color;
}
Expand All @@ -416,7 +416,7 @@ h2.react-datepicker__current-month {
background-color: $datepicker__highlighted-color;
color: #fff;

&:hover {
&:not([aria-disabled="true"]):hover {
background-color: darken($datepicker__highlighted-color, 5%);
}

Expand Down Expand Up @@ -452,7 +452,7 @@ h2.react-datepicker__current-month {
opacity 0.3s ease-in-out;
}

&:hover {
&:not([aria-disabled="true"]):hover {
background-color: darken($datepicker__holidays-color, 10%);
}

Expand All @@ -469,7 +469,7 @@ h2.react-datepicker__current-month {
background-color: $datepicker__selected-color;
color: #fff;

&:hover {
&:not([aria-disabled="true"]):hover {
background-color: darken($datepicker__selected-color, 5%);
}
}
Expand All @@ -479,7 +479,7 @@ h2.react-datepicker__current-month {
background-color: lighten($datepicker__selected-color, 45%);
color: rgb(0, 0, 0);

&:hover {
&:not([aria-disabled="true"]):hover {
background-color: darken($datepicker__selected-color, 5%);
}
}
Expand All @@ -500,10 +500,6 @@ h2.react-datepicker__current-month {
cursor: default;
color: $datepicker__muted-color;

&:hover {
background-color: transparent;
}

.overlay {
position: absolute;
bottom: 70%;
Expand Down

0 comments on commit 08cdae9

Please sign in to comment.