2021-09-21 16:01:33 +00:00
|
|
|
{{!
|
|
|
|
Sticky header is hidden from screen readers because it contains duplicated content
|
|
|
|
that is already accessible to assistive tech via landmark roles, element type, and other navigation methods.
|
|
|
|
The interactive elements in the sticky header should have the `tabindex="-1"` attribute set to ensure
|
|
|
|
the header is also not tab accessible.
|
|
|
|
|
|
|
|
See https://dequeuniversity.com/rules/axe/4.1/aria-hidden-focus and https://phabricator.wikimedia.org/T290201
|
|
|
|
for more context.
|
|
|
|
}}
|
|
|
|
<header id="vector-sticky-header" aria-hidden="true"
|
2021-09-29 12:06:07 +00:00
|
|
|
class="vector-sticky-header{{#is-visible}} vector-sticky-header-visible{{/is-visible}}">
|
2021-08-30 22:44:00 +00:00
|
|
|
<div class="vector-sticky-header-start">
|
|
|
|
<div class="vector-sticky-header-icon-start">
|
2021-09-07 20:22:19 +00:00
|
|
|
{{#data-button-start}}
|
|
|
|
{{>Button}}
|
|
|
|
{{/data-button-start}}
|
2021-08-30 22:44:00 +00:00
|
|
|
</div>
|
2021-09-09 21:40:06 +00:00
|
|
|
{{#data-search}}
|
2021-09-16 19:27:10 +00:00
|
|
|
{{>SearchBox}}
|
2021-09-09 21:40:06 +00:00
|
|
|
{{/data-search}}
|
2021-08-30 22:44:00 +00:00
|
|
|
<div class="vector-sticky-header-context-bar">
|
2021-10-18 20:00:47 +00:00
|
|
|
<div class="vector-sticky-header-context-bar-primary" {{{html-user-language-attributes}}}>{{{html-title}}}</div>
|
2021-08-30 22:44:00 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="vector-sticky-header-end">
|
|
|
|
<div class="vector-sticky-header-icons">
|
2021-09-07 20:22:19 +00:00
|
|
|
{{#data-buttons}}
|
|
|
|
{{>Button}}
|
|
|
|
{{/data-buttons}}
|
2021-08-30 22:44:00 +00:00
|
|
|
</div>
|
2021-09-07 20:22:19 +00:00
|
|
|
{{#data-primary-action}}
|
|
|
|
{{>Button}}
|
|
|
|
{{/data-primary-action}}
|
2021-08-30 22:44:00 +00:00
|
|
|
<div class="vector-sticky-header-icon-end">
|
2021-09-09 02:26:33 +00:00
|
|
|
<div class="vector-user-links">
|
|
|
|
{{! User menu items with unique ids are cloned here from the fixed header in stickyHeader.js. }}
|
|
|
|
</div>
|
2021-08-30 22:44:00 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</header>
|