From a2feb8847cbf0742c00ec14f45c9de5c93506d7a Mon Sep 17 00:00:00 2001 From: Phoebe Lartisant Date: Mon, 22 Apr 2024 16:24:45 +0200 Subject: [PATCH 1/2] Add Icon Button Hover --- src/components/Button/Button.stories.tsx | 4 +++ src/components/Button/Button.tsx | 33 ++++++++++++++++++++++-- 2 files changed, 35 insertions(+), 2 deletions(-) diff --git a/src/components/Button/Button.stories.tsx b/src/components/Button/Button.stories.tsx index c527e40a..f780d409 100644 --- a/src/components/Button/Button.stories.tsx +++ b/src/components/Button/Button.stories.tsx @@ -150,6 +150,10 @@ export const _Icon = { +   +

); From 37c599c9bc9fb6552a27b614dbb550f7ac0bd89f Mon Sep 17 00:00:00 2001 From: Phoebe Lartisant Date: Tue, 23 Apr 2024 09:51:30 +0200 Subject: [PATCH 2/2] review changes --- src/components/Button/Button.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Button/Button.tsx b/src/components/Button/Button.tsx index d871e70c..f27bec6c 100644 --- a/src/components/Button/Button.tsx +++ b/src/components/Button/Button.tsx @@ -13,7 +13,7 @@ export interface ButtonProps extends ComponentPropsWithoutRef<'button'> { pressed?: boolean; variant?: 'secondary' | 'primary' | 'danger' | 'toggle' | 'icon' | undefined; customClass?: string; - hoverText?: string; + hoverText?: ReactNode; } export function ButtonToggle(props: ButtonProps) {