mirror of
https://github.com/mastodon/mastodon.git
synced 2026-08-23 14:54:47 -05:00
Remove redundant accessibility patch for simple-navigation (#39630)
This commit is contained in:
@@ -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