From d8312fceea5f57b32cd1a7f01c5a5ff052fd133c Mon Sep 17 00:00:00 2001 From: diondiondion Date: Fri, 26 Jun 2026 10:59:16 +0200 Subject: [PATCH] [Glitch] Remove redundant accessibility patch for `simple-navigation` Port 1703d48be2575e591110618baa71e0f54df14a79 to glitch-soc Signed-off-by: Claire --- app/javascript/flavours/glitch/entrypoints/public.tsx | 8 -------- 1 file changed, 8 deletions(-) diff --git a/app/javascript/flavours/glitch/entrypoints/public.tsx b/app/javascript/flavours/glitch/entrypoints/public.tsx index a3fcc03a05..acec361454 100644 --- a/app/javascript/flavours/glitch/entrypoints/public.tsx +++ b/app/javascript/flavours/glitch/entrypoints/public.tsx @@ -522,14 +522,6 @@ on('click', '.rules-list button', ({ target }) => { * don't produce accessible markup (simple-forms & simple-navigation) */ function applyRailsA11yPatches() { - /** - * Mark current navigation item with aria-current - */ - const activeNavLink = document.querySelector( - '.simple-navigation-active-leaf a.selected', - ); - activeNavLink?.setAttribute('aria-current', 'page'); - /** * Hides the asterisk added to labels of required form fields * from assistive tech. (Those fields already have the `required` attribute)