From 6f0fbe860617998492d158d914ddac3a2b37c136 Mon Sep 17 00:00:00 2001 From: Ankit singh Date: Mon, 3 Jul 2023 03:56:45 +0530 Subject: [PATCH] Fix [Bug]: Change cursor pointer in checkbox's disabled state #91 --- packages/ui/src/6-elements/form/_radio-and-checkbox.scss | 1 + packages/ui/src/6-elements/form/_switch.scss | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/ui/src/6-elements/form/_radio-and-checkbox.scss b/packages/ui/src/6-elements/form/_radio-and-checkbox.scss index b2db9c3e3a..27ceb91ae1 100644 --- a/packages/ui/src/6-elements/form/_radio-and-checkbox.scss +++ b/packages/ui/src/6-elements/form/_radio-and-checkbox.scss @@ -84,6 +84,7 @@ &:where(:disabled) { --p-bg-color: var(--p-bg-color-disabled); --p-border-color: var(--p-border-color-ddisabled); + cursor:default; &:where(:checked) { --p-icon-color: var(--p-icon-color-disabled-checked); --p-bg-color: var(--p-bg-color-disabled-checked); diff --git a/packages/ui/src/6-elements/form/_switch.scss b/packages/ui/src/6-elements/form/_switch.scss index b17f736fee..b91a9736f9 100644 --- a/packages/ui/src/6-elements/form/_switch.scss +++ b/packages/ui/src/6-elements/form/_switch.scss @@ -68,6 +68,7 @@ &:where(:disabled) { --p-bg-color: var(--p-bg-color-disabled); --p-switch-bg-color: var(--p-switch-bg-color-disabled); + cursor: default; &:where(:checked) { --p-bg-color: var(--p-bg-color-checked-disabled); } }