From c6d1b56aa4678617fef91cde0ae1bfc91d1c983b Mon Sep 17 00:00:00 2001 From: Sami Korpela Date: Tue, 23 Apr 2024 15:48:08 +0300 Subject: [PATCH] OPHJOD-300: Add hover style for RoundButton/RoundLinkButton --- lib/components/RoundButton/RoundButton.tsx | 10 +++++-- .../__snapshots__/RoundButton.test.tsx.snap | 24 +++++++-------- .../RoundLinkButton/RoundLinkButton.tsx | 10 +++++-- .../RoundLinkButton.test.tsx.snap | 30 +++++++++---------- 4 files changed, 41 insertions(+), 33 deletions(-) diff --git a/lib/components/RoundButton/RoundButton.tsx b/lib/components/RoundButton/RoundButton.tsx index fb8cbe1..3bfc36c 100644 --- a/lib/components/RoundButton/RoundButton.tsx +++ b/lib/components/RoundButton/RoundButton.tsx @@ -26,15 +26,19 @@ export const RoundButton = ({ disabled={disabled} type="button" onClick={onClick} - className={`${className ? className : ''} flex flex-col justify-center ${disabled ? 'cursor-not-allowed opacity-50' : ''} min-w-[110px] items-center gap-2`.trim()} + className={`${className ? className : ''} group flex flex-col justify-center ${disabled ? 'cursor-not-allowed opacity-50' : ''} min-w-[110px] items-center gap-2`.trim()} > {icon} - {label} + + {label} + ); }; diff --git a/lib/components/RoundButton/__snapshots__/RoundButton.test.tsx.snap b/lib/components/RoundButton/__snapshots__/RoundButton.test.tsx.snap index 97adbca..d310f54 100644 --- a/lib/components/RoundButton/__snapshots__/RoundButton.test.tsx.snap +++ b/lib/components/RoundButton/__snapshots__/RoundButton.test.tsx.snap @@ -2,17 +2,17 @@ exports[`Snapshot testing > Default 1`] = `