From baa45809033d6ba49645685c59a28f60a57e0d36 Mon Sep 17 00:00:00 2001 From: Adam Antal Date: Fri, 29 Dec 2023 12:43:21 +0100 Subject: [PATCH 1/7] Add arrow arrow__hover--right-small classes to stackable material In order for the arrow in the card to get animated. --- .../materials/stackable-material/stackable-material.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/apps/loan-list/materials/stackable-material/stackable-material.tsx b/src/apps/loan-list/materials/stackable-material/stackable-material.tsx index 0cfe3019b3..807addf621 100644 --- a/src/apps/loan-list/materials/stackable-material/stackable-material.tsx +++ b/src/apps/loan-list/materials/stackable-material/stackable-material.tsx @@ -43,9 +43,12 @@ const StackableMaterial: FC = ({ return (
0 - })} + className={clsx( + "list-reservation my-32 cursor-pointer arrow arrow__hover--right-small", + { + "list-reservation--stacked": additionalMaterials > 0 + } + )} role="button" onClick={handleOpenDueDateModal} onKeyUp={(e) => { From 93d63a9ed18f1e15e5e7f55067da19ea7ff42ae2 Mon Sep 17 00:00:00 2001 From: Adam Antal Date: Fri, 29 Dec 2023 12:44:20 +0100 Subject: [PATCH 2/7] Add arrow-button class to arrow button elem so it behaves consistently --- src/components/Buttons/ArrowButton.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/Buttons/ArrowButton.tsx b/src/components/Buttons/ArrowButton.tsx index 3b92e8113a..700e9dc3c8 100644 --- a/src/components/Buttons/ArrowButton.tsx +++ b/src/components/Buttons/ArrowButton.tsx @@ -18,6 +18,7 @@ const ArrowButton: React.FC = ({ return (