From 861244ce0122dd8030f49beac5495a37bb23fd29 Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Fri, 31 Jan 2025 17:55:19 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84(frontend)=20update=20cursor=20on?= =?UTF-8?q?=20disabled=20button?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When a button is disabled, it's misleading to show a pointer. Update it to the default pointer. --- src/frontend/src/primitives/buttonRecipe.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/frontend/src/primitives/buttonRecipe.ts b/src/frontend/src/primitives/buttonRecipe.ts index b704968d..6a713db5 100644 --- a/src/frontend/src/primitives/buttonRecipe.ts +++ b/src/frontend/src/primitives/buttonRecipe.ts @@ -8,6 +8,9 @@ export const buttonRecipe = cva({ transition: 'background 200ms, outline 200ms, border-color 200ms', cursor: 'pointer', border: '1px solid transparent', + '&[data-disabled]': { + cursor: 'default', + }, }, variants: { size: {