diff --git a/src/components/layout/mobile-portal-menu.test.tsx b/src/components/layout/mobile-portal-menu.test.tsx index 7397bf2..f18c624 100644 --- a/src/components/layout/mobile-portal-menu.test.tsx +++ b/src/components/layout/mobile-portal-menu.test.tsx @@ -39,6 +39,19 @@ test("opens every mobile portal action and marks the most specific active route" expect(screen.getByRole("button", { name: /abmelden/i })).toBeTruthy(); }); +test("keeps nested theme and logout buttons at least 44px tall", () => { + render(); + + fireEvent.click(screen.getByRole("button", { name: /menü öffnen/i })); + + const themeToggle = screen.getByRole("button", { name: /design umschalten/i }); + const logoutButton = screen.getByRole("button", { name: /abmelden/i }); + + expect(themeToggle.parentElement?.getAttribute("class")).toContain("[&>button]:min-h-11"); + expect(themeToggle.parentElement?.getAttribute("class")).toContain("[&>button]:min-w-11"); + expect(logoutButton.parentElement?.getAttribute("class")).toContain("[&>button]:min-h-11"); +}); + test("closes after navigation, Escape and an outside pointer interaction", () => { render(
diff --git a/src/components/layout/mobile-portal-menu.tsx b/src/components/layout/mobile-portal-menu.tsx index 9bcecb5..77f5a50 100644 --- a/src/components/layout/mobile-portal-menu.tsx +++ b/src/components/layout/mobile-portal-menu.tsx @@ -90,11 +90,11 @@ export function MobilePortalMenu({ nav, sectionLabel }: Readonly -
+
Darstellung
-
+