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

This commit is contained in:
diondiondion
2026-06-26 10:59:16 +02:00
committed by GitHub
parent 79c5ed1203
commit 1703d48be2

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)