From 54954492e8733ae1ff87a0323aa2eef16ab3db9a Mon Sep 17 00:00:00 2001 From: Sami Korpela Date: Mon, 8 Apr 2024 10:56:11 +0300 Subject: [PATCH] OPHJOD-285: Update RoundLinkButton clickable area --- lib/components/RoundButton/RoundButton.tsx | 4 +- .../__snapshots__/RoundButton.test.tsx.snap | 20 +++---- .../RoundLinkButton/RoundLinkButton.tsx | 24 ++++---- .../RoundLinkButton.test.tsx.snap | 60 +++++++------------ 4 files changed, 44 insertions(+), 64 deletions(-) diff --git a/lib/components/RoundButton/RoundButton.tsx b/lib/components/RoundButton/RoundButton.tsx index 1c0115f..5ad777a 100644 --- a/lib/components/RoundButton/RoundButton.tsx +++ b/lib/components/RoundButton/RoundButton.tsx @@ -24,10 +24,10 @@ export const RoundButton = ({ label, onClick, disabled = false, selected = false disabled={disabled} type="button" onClick={onClick} - className={`border-transparent hover:ring-purple-500 focus:ring-purple-500 size-[72px] rounded-full border hover:ring focus:outline-none focus:ring focus:hover:border-none ${selected ? 'bg-[#697077]' : 'bg-[#f5f5f5]'}`} + className={`focus:ring-purple-500 size-[72px] rounded-full border border-none hover:ring hover:ring-accent focus:outline-none focus:ring focus:hover:border-none ${selected ? 'bg-[#697077]' : 'bg-[#f5f5f5]'}`} > {/** TODO: Need real icons and alignment and styles to be adjusted then */} - + diff --git a/lib/components/RoundButton/__snapshots__/RoundButton.test.tsx.snap b/lib/components/RoundButton/__snapshots__/RoundButton.test.tsx.snap index 4100fca..9afd748 100644 --- a/lib/components/RoundButton/__snapshots__/RoundButton.test.tsx.snap +++ b/lib/components/RoundButton/__snapshots__/RoundButton.test.tsx.snap @@ -6,11 +6,11 @@ exports[`Snapshot testing > Default 1`] = ` >