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}} {{^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}} {{#icon}}
{{#pix}}{{key}}, {{component}}, {{title}}{{/pix}} {{#pix}}{{key}}, {{component}}, {{title}}{{/pix}}
{{/icon}} {{/icon}}
{{#showtext}} {{#showtext}}
<span class="menu-action-text" id="actionmenuaction-{{instance}}">{{{text}}}</span> <span class="menu-action-text">{{{text}}}</span>
{{/showtext}} {{/showtext}}
</a> </a>
{{/disabled}} {{/disabled}}