From 28849e433a4cde2037d7e719f9061e37267da3e7 Mon Sep 17 00:00:00 2001 From: diondiondion Date: Fri, 22 May 2026 16:25:00 +0200 Subject: [PATCH] [Accessibility] Add list semantics to main navigation (#39145) --- .../components/collapsible_panel.tsx | 6 +- .../features/navigation_panel/index.tsx | 202 ++++++++++-------- .../styles/mastodon/components.scss | 3 +- 3 files changed, 119 insertions(+), 92 deletions(-) diff --git a/app/javascript/mastodon/features/navigation_panel/components/collapsible_panel.tsx b/app/javascript/mastodon/features/navigation_panel/components/collapsible_panel.tsx index 39a7899596..217e15b5ee 100644 --- a/app/javascript/mastodon/features/navigation_panel/components/collapsible_panel.tsx +++ b/app/javascript/mastodon/features/navigation_panel/components/collapsible_panel.tsx @@ -36,7 +36,7 @@ export const CollapsiblePanel: React.FC<{ }, [setExpanded]); return ( -
+
  • )} @@ -80,6 +80,6 @@ export const CollapsiblePanel: React.FC<{ {children}
    )} -
  • + ); }; diff --git a/app/javascript/mastodon/features/navigation_panel/index.tsx b/app/javascript/mastodon/features/navigation_panel/index.tsx index 33a2a43a70..3d038c22dd 100644 --- a/app/javascript/mastodon/features/navigation_panel/index.tsx +++ b/app/javascript/mastodon/features/navigation_panel/index.tsx @@ -249,124 +249,150 @@ export const NavigationPanel: React.FC<{ multiColumn?: boolean }> = ({ {banner &&
    {banner}
    } -
    +
    +
    diff --git a/app/javascript/styles/mastodon/components.scss b/app/javascript/styles/mastodon/components.scss index ec5caf9399..2e85f7a476 100644 --- a/app/javascript/styles/mastodon/components.scss +++ b/app/javascript/styles/mastodon/components.scss @@ -3801,7 +3801,8 @@ a.account__display-name { .navigation-panel, .compose-panel { - hr { + hr, + li[role='separator'] { flex: 0 0 auto; border: 0; background: transparent;