From 08cdae973ad0d77ff6daa3bbc789d713c64d2265 Mon Sep 17 00:00:00 2001 From: Balaji Sridharan Date: Thu, 18 Jul 2024 16:31:37 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=F0=9F=8E=A8=20Update=20the=20hover?= =?UTF-8?q?=20style=20to=20be=20applied=20only=20to=20the=20non-disabled?= =?UTF-8?q?=20calendar=20items?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #4986 --- src/stylesheets/datepicker.scss | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/stylesheets/datepicker.scss b/src/stylesheets/datepicker.scss index 83b2be6a2b..54ce483aa1 100644 --- a/src/stylesheets/datepicker.scss +++ b/src/stylesheets/datepicker.scss @@ -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; } @@ -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%); } @@ -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%); } @@ -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%); } } @@ -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%); } } @@ -500,10 +500,6 @@ h2.react-datepicker__current-month { cursor: default; color: $datepicker__muted-color; - &:hover { - background-color: transparent; - } - .overlay { position: absolute; bottom: 70%;