MDL-80676 core: Remove unnecessary aria-labelledby for action menu links

The aria-labelledby attribute for the action menu link's <a> tag is
unnecessary as the <span> tag containing the action menu link's text
is already within the <a> tag and already serves as the link's label by
default.
This commit is contained in:
Jun Pataleta 2024-01-19 13:10:34 +08:00
parent 810554ee83
commit 17647186f9
No known key found for this signature in database
GPG Key ID: F83510526D99E2C7

View File

@ -27,12 +27,12 @@
}
}}
{{^disabled}}
<a href="{{url}}" class="{{$actionmenulinkclasses}}aabtn {{classes}}{{/actionmenulinkclasses}}" {{#attributes}}{{name}}="{{value}}" {{/attributes}}{{#showtext}}aria-labelledby="actionmenuaction-{{instance}}"{{/showtext}}>
<a href="{{url}}" class="{{$actionmenulinkclasses}}aabtn {{classes}}{{/actionmenulinkclasses}}" {{#attributes}}{{name}}="{{value}}" {{/attributes}}>
{{#icon}}
{{#pix}}{{key}}, {{component}}, {{title}}{{/pix}}
{{/icon}}
{{#showtext}}
<span class="menu-action-text" id="actionmenuaction-{{instance}}">{{{text}}}</span>
<span class="menu-action-text">{{{text}}}</span>
{{/showtext}}
</a>
{{/disabled}}