From 26ca81db40c9c37556ccba2cbfbc6cf24b2d898f Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Tue, 3 Sep 2024 14:34:45 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9(frontend)=20fix=20color=20contrast?= =?UTF-8?q?=20when=20toggling=20a=20control?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Copied legacy style from the screen share control. Still imperfect, but at least it's visually more "comfy". --- src/frontend/src/primitives/buttonRecipe.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/frontend/src/primitives/buttonRecipe.ts b/src/frontend/src/primitives/buttonRecipe.ts index 52b2561b..a40f3064 100644 --- a/src/frontend/src/primitives/buttonRecipe.ts +++ b/src/frontend/src/primitives/buttonRecipe.ts @@ -140,6 +140,7 @@ export const buttonRecipe = cva({ legacyStyle: { true: { borderColor: 'gray.400', + transition: 'border 200ms, background 200ms, color 200ms', '&[data-hovered]': { borderColor: 'gray.500', }, @@ -147,10 +148,12 @@ export const buttonRecipe = cva({ borderColor: 'gray.500', }, '&[data-selected]': { - background: '#e5e7eb', - borderColor: 'gray.400', + backgroundColor: '#1d4ed8', + color: 'white', + borderColor: 'gray.500', '&[data-hovered]': { - backgroundColor: 'gray.300', + borderColor: '#6b7280', + backgroundColor: '#1e40af', }, }, },