diff --git a/includes/templates/Menu.mustache b/includes/templates/Menu.mustache index 234cba44..8ab35c44 100644 --- a/includes/templates/Menu.mustache +++ b/includes/templates/Menu.mustache @@ -4,10 +4,9 @@
{{! - Dropdown menus use the checkbox hack and require `input` and `label` elements - The accessible label is applied to the `input` which is semantically a button - The `label` element is used as a visual button and is hidden from screenreaders - to reduce verbosity, as it's contents are already used or overridden in the `input` element + Dropdown menus use the checkbox hack and require `input` and `label` elements. + `aria-label` is applied to the `input` which is semantically a button. + The `label` element is used as a visual button. }} {{#is-dropdown}} {{/is-dropdown}} {{! - Portal menus also require `label` elements, but these - should not be hidden and should have an accessible label + Portal menus also require a label }} {{#is-portal}} - +

{{/is-portal}}
{{{html-before-portal}}} diff --git a/includes/templates/legacy/Menu.mustache b/includes/templates/legacy/Menu.mustache index 4b699107..c6d71421 100644 --- a/includes/templates/legacy/Menu.mustache +++ b/includes/templates/legacy/Menu.mustache @@ -13,7 +13,6 @@ class="{{#checkbox-class}}{{.}} {{/checkbox-class}}vector-menu-checkbox" aria-labelledby="{{id}}-label" /> - {{/is-dropdown}} + {{/is-dropdown}} + {{^is-dropdown}} +

+ {{{html-vector-heading-icon}}}{{label}} +

+ {{/is-dropdown}}
{{{html-before-portal}}}
    {{{html-items}}}