From b8c0007c31fc05b15545b4bca4eacfbfa3a1d9b1 Mon Sep 17 00:00:00 2001 From: Lloyd Francis Date: Thu, 31 Oct 2024 12:03:42 +0100 Subject: [PATCH] fix: changing the cursor pointer for disabled states --- src/components/experimental/Button/Button.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/experimental/Button/Button.tsx b/src/components/experimental/Button/Button.tsx index 745916260..2ecdf705c 100644 --- a/src/components/experimental/Button/Button.tsx +++ b/src/components/experimental/Button/Button.tsx @@ -62,6 +62,10 @@ const ButtonStyled = styled(BaseButton)<{ $emphasis: Emphasis }>` cursor: pointer; + &[data-disabled] { + cursor: not-allowed; + } + &::before { position: absolute; top: 0;