From 1703d48be2575e591110618baa71e0f54df14a79 Mon Sep 17 00:00:00 2001 From: diondiondion Date: Fri, 26 Jun 2026 10:59:16 +0200 Subject: [PATCH] Remove redundant accessibility patch for `simple-navigation` (#39630) --- app/javascript/entrypoints/public.tsx | 8 -------- 1 file changed, 8 deletions(-) diff --git a/app/javascript/entrypoints/public.tsx b/app/javascript/entrypoints/public.tsx index 5563b8324e6..848e600895e 100644 --- a/app/javascript/entrypoints/public.tsx +++ b/app/javascript/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)