From 2f2c8d173eaa9f05decad45458a4824a51be40be Mon Sep 17 00:00:00 2001 From: Jay Date: Wed, 6 Aug 2025 14:48:39 -0400 Subject: [PATCH] Updated arrow icons. --- src/components/ColorValues/ValueEditor.module.css | 2 +- src/components/ColorValues/ValueEditor.tsx | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/components/ColorValues/ValueEditor.module.css b/src/components/ColorValues/ValueEditor.module.css index 8954159..dac5d38 100644 --- a/src/components/ColorValues/ValueEditor.module.css +++ b/src/components/ColorValues/ValueEditor.module.css @@ -53,7 +53,7 @@ .button { height: 100%; width: 100%; - padding: 2px 0px 0px; + padding: 0; cursor: pointer; user-select: none; background: none; diff --git a/src/components/ColorValues/ValueEditor.tsx b/src/components/ColorValues/ValueEditor.tsx index 2d0504e..745e1fc 100644 --- a/src/components/ColorValues/ValueEditor.tsx +++ b/src/components/ColorValues/ValueEditor.tsx @@ -1,7 +1,10 @@ import { useEffect, useRef, useState } from "react"; import type { ChangeEvent, RefObject } from "react"; -import { faAngleLeft, faAngleRight } from "@fortawesome/free-solid-svg-icons"; +import { + faChevronLeft, + faChevronRight, +} from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import clsx from "clsx"; @@ -180,7 +183,7 @@ function Button({ }) { const isIncrease = direction === "increase"; const label = isIncrease ? "Increase" : "Decrease"; - const icon = isIncrease ? faAngleRight : faAngleLeft; + const icon = isIncrease ? faChevronRight : faChevronLeft; const dataCy = `${componentSymbol}-${isIncrease ? "increment" : "decrement"}-button`; const step = isIncrease ? 1 : -1; @@ -196,7 +199,7 @@ function Button({ aria-label={`${label} ${componentSymbol}`} data-cy={dataCy} > - + ); @@ -270,8 +273,7 @@ function useLongPressRepeat( }; // Intentional 'any' to avoid overly complex typing - const start = (e: Event | any) => { - e.preventDefault(); + const start = () => { cleanup(); timeoutRef.current = setTimeout(() => {