From df2013ca92a49b5947e2fbc2641fd92860c32042 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Thu, 17 Oct 2024 17:41:30 +0200 Subject: [PATCH] fix(Button): invalid hover on `link` variant --- src/theme/button.ts | 2 +- .../__snapshots__/Button.spec.ts.snap | 2 +- .../__snapshots__/Pagination.spec.ts.snap | 20 +++++++++---------- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/theme/button.ts b/src/theme/button.ts index ec127e0b49..f1ad16f6a4 100644 --- a/src/theme/button.ts +++ b/src/theme/button.ts @@ -99,7 +99,7 @@ export default (options: Required) => ({ })), ...(options.theme.colors || []).map((color: string) => ({ color, variant: 'link', - class: `text-[var(--ui-${color})] hover:text-[var(--ui-${color})] disabled:text-[var(--ui-${color})] aria-disabled:text-[var(--ui-${color})] focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-${color})]` + class: `text-[var(--ui-${color})] hover:text-[var(--ui-${color})]/75 disabled:text-[var(--ui-${color})] aria-disabled:text-[var(--ui-${color})] focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-${color})]` })), { color: 'neutral', variant: 'solid', diff --git a/test/components/__snapshots__/Button.spec.ts.snap b/test/components/__snapshots__/Button.spec.ts.snap index afb8c76fd7..f74c52b4c2 100644 --- a/test/components/__snapshots__/Button.spec.ts.snap +++ b/test/components/__snapshots__/Button.spec.ts.snap @@ -169,7 +169,7 @@ exports[`Button > renders with primary variant ghost correctly 1`] = ` `; exports[`Button > renders with primary variant link correctly 1`] = ` -"" diff --git a/test/components/__snapshots__/Pagination.spec.ts.snap b/test/components/__snapshots__/Pagination.spec.ts.snap index 94755b32e9..833ef903d6 100644 --- a/test/components/__snapshots__/Pagination.spec.ts.snap +++ b/test/components/__snapshots__/Pagination.spec.ts.snap @@ -422,7 +422,7 @@ exports[`Pagination > renders with neutral active variant link correctly 1`] = `