Updated arrow icons.

This commit is contained in:
Jay
2025-08-06 14:48:39 -04:00
parent 1683b66025
commit 2f2c8d173e
2 changed files with 8 additions and 6 deletions
@@ -53,7 +53,7 @@
.button {
height: 100%;
width: 100%;
padding: 2px 0px 0px;
padding: 0;
cursor: pointer;
user-select: none;
background: none;
+7 -5
View File
@@ -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}
>
<FontAwesomeIcon icon={icon} />
<FontAwesomeIcon icon={icon} transform="shrink-2 down-1" />
</button>
</div>
);
@@ -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(() => {