[Glitch] Remove redundant accessibility patch for simple-navigation
Port 1703d48be2 to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
1 parent
7bdfdd84f9
commit
d8312fceea
1 file changed
-8
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user