Remove redundant accessibility patch for simple-navigation (#39630)

This commit is contained in:
diondiondion authored and GitHub committed 2026-06-26 08:59:16 +00:00
1 parent 79c5ed1203
commit 1703d48be2
1 file changed
-8
-8
View File
@@ -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)