From 5d3a7b4fe749e1b558c49354d2b0356c63af1868 Mon Sep 17 00:00:00 2001 From: Fabian Hiller Date: Tue, 31 Dec 2024 01:00:47 -0500 Subject: [PATCH] Differentiate Tailwind CSS groups by naming them --- website/src/components/IconButton.tsx | 8 ++++---- website/src/components/MainMenuToggle.tsx | 7 +++++-- website/src/components/PostCover.tsx | 3 +-- website/src/hooks/useMDXComponents.tsx | 4 ++-- website/src/routes/blog/index.tsx | 2 +- 5 files changed, 13 insertions(+), 11 deletions(-) diff --git a/website/src/components/IconButton.tsx b/website/src/components/IconButton.tsx index 6bee2c7d5..219b965bd 100644 --- a/website/src/components/IconButton.tsx +++ b/website/src/components/IconButton.tsx @@ -18,7 +18,7 @@ export const IconButton = component$( ( class={clsx( 'flex h-10 w-10 items-center justify-center rounded-xl transition-colors', variant === 'primary' && - 'bg-sky-600 text-white group-hover:bg-sky-600/80 dark:bg-sky-400 dark:text-gray-900 dark:group-hover:bg-sky-400/80', + 'bg-sky-600 text-white group-hover/button:bg-sky-600/80 dark:bg-sky-400 dark:text-gray-900 dark:group-hover/button:bg-sky-400/80', variant === 'secondary' && - 'bg-sky-600/10 text-sky-600 group-hover:bg-sky-600/20 dark:bg-sky-400/10 dark:text-sky-400 dark:group-hover:bg-sky-400/20' + 'bg-sky-600/10 text-sky-600 group-hover/button:bg-sky-600/20 dark:bg-sky-400/10 dark:text-sky-400 dark:group-hover/button:bg-sky-400/20' )} > @@ -38,7 +38,7 @@ export const IconButton = component$( {!hideLabel && (
{label} diff --git a/website/src/components/MainMenuToggle.tsx b/website/src/components/MainMenuToggle.tsx index cc61f18c9..c95f4f7a3 100644 --- a/website/src/components/MainMenuToggle.tsx +++ b/website/src/components/MainMenuToggle.tsx @@ -16,7 +16,10 @@ export const MainMenuToggle = component$(