From c618d800992bd32a513b8f870c43ade771faa287 Mon Sep 17 00:00:00 2001 From: martin Date: Sat, 24 Jan 2026 19:18:54 +0100 Subject: [PATCH] hide accessibility toggle on mobile, add accessibility button to mobile menu with collapsible bar #deploy --- src/components/AccessibilityToggle.tsx | 2 +- src/components/Header.tsx | 28 +++++++++++++++++++++++--- src/components/Layout.tsx | 6 +++--- 3 files changed, 29 insertions(+), 7 deletions(-) diff --git a/src/components/AccessibilityToggle.tsx b/src/components/AccessibilityToggle.tsx index f3cbbc2..fc1464a 100644 --- a/src/components/AccessibilityToggle.tsx +++ b/src/components/AccessibilityToggle.tsx @@ -49,7 +49,7 @@ const AccessibilityToggle = () => { {/* Toggle Button */} + {[...navigation, ...rightMenuItems].map((item) => { @@ -190,6 +205,13 @@ const Header = () => { ); })} + + {/* Mobile Accessibility Bar */} + {isAccessibilityOpen && ( +
+ +
+ )} )} diff --git a/src/components/Layout.tsx b/src/components/Layout.tsx index e2f407e..2128a48 100644 --- a/src/components/Layout.tsx +++ b/src/components/Layout.tsx @@ -102,8 +102,8 @@ const Layout = ({ children }: LayoutProps) => { -
- {showToTop ? ( +
+ {showToTop && ( - ) : null} + )}