Merge "Put ARIA roles and attributes into context"

This commit is contained in:
jenkins-bot 2020-06-25 19:20:34 +00:00 committed by Gerrit Code Review
commit 7c6d6372c7
1 changed files with 6 additions and 4 deletions

View File

@ -46,10 +46,9 @@
type="checkbox"
id="mw-sidebar-checkbox"
class="mw-checkbox-hack-checkbox"
role="button"
{{#sidebar-visible}}checked{{/sidebar-visible}}
aria-labelledby="mw-sidebar-button"
aria-controls="mw-panel">
tabindex="-1"
aria-hidden="true">
{{! `role` is unnecessary but kept to support selectors in any gadgets or user styles. }}
<!-- Please do not use role attribute as CSS selector, it is deprecated. -->
@ -89,7 +88,10 @@
id="mw-sidebar-button"
class="mw-checkbox-hack-button mw-ui-icon mw-ui-icon-element"
for="mw-sidebar-checkbox"
data-event-name="ui.sidebar">
role="button"
aria-controls="mw-panel"
data-event-name="ui.sidebar"
tabindex="0">
{{msg-vector-action-toggle-sidebar}}
</label>