Updated arrow icons.
This commit is contained in:
@@ -53,7 +53,7 @@
|
|||||||
.button {
|
.button {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 2px 0px 0px;
|
padding: 0;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
background: none;
|
background: none;
|
||||||
|
|||||||
@@ -1,7 +1,10 @@
|
|||||||
import { useEffect, useRef, useState } from "react";
|
import { useEffect, useRef, useState } from "react";
|
||||||
import type { ChangeEvent, RefObject } 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 { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
||||||
|
|
||||||
import clsx from "clsx";
|
import clsx from "clsx";
|
||||||
@@ -180,7 +183,7 @@ function Button({
|
|||||||
}) {
|
}) {
|
||||||
const isIncrease = direction === "increase";
|
const isIncrease = direction === "increase";
|
||||||
const label = isIncrease ? "Increase" : "Decrease";
|
const label = isIncrease ? "Increase" : "Decrease";
|
||||||
const icon = isIncrease ? faAngleRight : faAngleLeft;
|
const icon = isIncrease ? faChevronRight : faChevronLeft;
|
||||||
const dataCy = `${componentSymbol}-${isIncrease ? "increment" : "decrement"}-button`;
|
const dataCy = `${componentSymbol}-${isIncrease ? "increment" : "decrement"}-button`;
|
||||||
|
|
||||||
const step = isIncrease ? 1 : -1;
|
const step = isIncrease ? 1 : -1;
|
||||||
@@ -196,7 +199,7 @@ function Button({
|
|||||||
aria-label={`${label} ${componentSymbol}`}
|
aria-label={`${label} ${componentSymbol}`}
|
||||||
data-cy={dataCy}
|
data-cy={dataCy}
|
||||||
>
|
>
|
||||||
<FontAwesomeIcon icon={icon} />
|
<FontAwesomeIcon icon={icon} transform="shrink-2 down-1" />
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
@@ -270,8 +273,7 @@ function useLongPressRepeat(
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Intentional 'any' to avoid overly complex typing
|
// Intentional 'any' to avoid overly complex typing
|
||||||
const start = (e: Event | any) => {
|
const start = () => {
|
||||||
e.preventDefault();
|
|
||||||
cleanup();
|
cleanup();
|
||||||
|
|
||||||
timeoutRef.current = setTimeout(() => {
|
timeoutRef.current = setTimeout(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user