From 7c6481a00ade5aedc7720263c17450e2d3d19cb8 Mon Sep 17 00:00:00 2001 From: Jay Date: Mon, 23 Mar 2026 09:42:33 -0400 Subject: [PATCH] Update disabled button rendering. --- .../PaletteEditor/PaletteEditor.module.css | 8 ++- .../PaletteEditor/PaletteEditor.tsx | 56 ++++++++++++++----- 2 files changed, 49 insertions(+), 15 deletions(-) diff --git a/src/components/PaletteEditor/PaletteEditor.module.css b/src/components/PaletteEditor/PaletteEditor.module.css index 8075943..cf2c7c1 100644 --- a/src/components/PaletteEditor/PaletteEditor.module.css +++ b/src/components/PaletteEditor/PaletteEditor.module.css @@ -25,7 +25,11 @@ transition-timing-function: ease-out; } -.actionBar .actionButton:hover { +.actionBar .actionButton.disabled { + cursor: auto; +} + +.actionBar .actionButton.enabled:hover { background-color: #f0f0f0; box-shadow: rgba(60, 64, 67, 0.25) 0px 3px 6px 0px, @@ -33,7 +37,7 @@ transform: translateY(-1px); } -.actionBar .actionButton:active { +.actionBar .actionButton.enabled:active { background-color: #d1d1d1; box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 1px 0px, diff --git a/src/components/PaletteEditor/PaletteEditor.tsx b/src/components/PaletteEditor/PaletteEditor.tsx index 94d9a1a..d9e08f9 100644 --- a/src/components/PaletteEditor/PaletteEditor.tsx +++ b/src/components/PaletteEditor/PaletteEditor.tsx @@ -190,7 +190,10 @@ function ActionBar({ return (