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>
<Tooltip label={t("common.back")}>
<IconButton size="24px" onClick={onBackClick}>
<IconButton onClick={onBackClick}>
{PrimaryButtonIcon ? (
<PrimaryButtonIcon aria-hidden />
) : (

View File

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