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"
|
2022-05-05 20:54:20 +00:00
|
|
|
class="vector-sticky-header">
|
2021-08-30 22:44:00 +00:00
|
|
|
<div class="vector-sticky-header-start">
|
2022-11-04 19:25:19 +00:00
|
|
|
<div class="vector-sticky-header-icon-start mw-ui-icon-flush-left mw-ui-icon-flush-right">
|
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">
|
2022-10-26 17:01:12 +00:00
|
|
|
<div class="vector-sticky-header-toc-container mw-ui-icon-flush-left">
|
2022-07-01 20:19:57 +00:00
|
|
|
{{! TOC is cloned into this menu from the sidebar in stickyHeader.js. }}
|
|
|
|
{{#data-sticky-header-toc}}
|
2022-11-28 21:08:40 +00:00
|
|
|
{{>Dropdown/Open}}
|
|
|
|
{{>UnpinnedContainer/Open}}
|
|
|
|
{{^is-pinned}}{{>PageTools}}{{/is-pinned}}
|
|
|
|
{{>UnpinnedContainer/Close}}
|
|
|
|
{{>Dropdown/Close}}
|
2022-07-01 20:19:57 +00:00
|
|
|
{{/data-sticky-header-toc}}
|
|
|
|
</div>
|
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>
|
2022-10-26 17:01:12 +00:00
|
|
|
<div class="vector-sticky-header-end mw-ui-icon-flush-right">
|
2021-08-30 22:44:00 +00:00
|
|
|
<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>
|