update back arrow size

This commit is contained in:
Timo K
2026-06-15 14:19:14 +02:00
parent 8c8c9eef24
commit db26db266d
2 changed files with 6 additions and 4 deletions

View File

@@ -84,7 +84,7 @@ export const AppBar: FC<Props> = ({ children }) => {
> >
<LeftNav> <LeftNav>
<Tooltip label={t("common.back")}> <Tooltip label={t("common.back")}>
<IconButton size="24px" onClick={onBackClick}> <IconButton onClick={onBackClick}>
{PrimaryButtonIcon ? ( {PrimaryButtonIcon ? (
<PrimaryButtonIcon aria-hidden /> <PrimaryButtonIcon aria-hidden />
) : ( ) : (

View File

@@ -130,12 +130,14 @@ describe("LobbyView", () => {
// Check that the primary button uses ArrowLeftIcon (the back/return icon), // Check that the primary button uses ArrowLeftIcon (the back/return icon),
// not the default CollapseIcon // not the default CollapseIcon
const { container: iconContainer } = render(<ArrowLeftIcon />); const { container: iconContainer } = render(<ArrowLeftIcon />);
const expectedPath = iconContainer.querySelector("path")!.getAttribute("d"); const expectedSvgPath = iconContainer
const primaryButtonPath = container .querySelector("path")!
.getAttribute("d");
const primaryButtonSvgPath = container
.querySelector(".leftNav button") .querySelector(".leftNav button")
?.querySelector("path") ?.querySelector("path")
?.getAttribute("d"); ?.getAttribute("d");
expect(primaryButtonPath).toBe(expectedPath); expect(primaryButtonSvgPath).toBe(expectedSvgPath);
expect(container).toMatchSnapshot(); expect(container).toMatchSnapshot();
expect(await axe(container)).toHaveNoViolations(); expect(await axe(container)).toHaveNoViolations();
}); });