mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-14 19:26:42 +00:00
8d9b148cf7
- Move the header and skip link out of .mw-page-container-inner and the grid - Wrap the header and sticky header with a .vector-header-container element, allowing us to easily update header styles in the future - Update sticky header to use a <div> to fix a11y error. Update searchToggle.js to use .vector-header-container rather than <header> Bug: T332449 Bug: T330438 Change-Id: I038fc17cbb88a29dbe8d7841b824761a91d38405
69 lines
3.5 KiB
Plaintext
69 lines
3.5 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`Sticky header renders 1`] = `
|
|
"<div id=\\"vector-sticky-header\\" class=\\"vector-sticky-header\\">
|
|
<div class=\\"vector-sticky-header-start\\">
|
|
<div class=\\"vector-sticky-header-icon-start mw-ui-icon-flush-left mw-ui-icon-flush-right\\" aria-hidden=\\"true\\">
|
|
|
|
<button tabindex=\\"-1\\" data-event-name=\\"ui.vector-sticky-search-form.icon\\" class=\\"mw-ui-button mw-ui-quiet mw-ui-icon mw-ui-icon-element mw-ui-icon-wikimedia-search vector-sticky-header-search-toggle\\">
|
|
<span>search</span>
|
|
|
|
</button>
|
|
</div>
|
|
<div> </div> <div class=\\"vector-sticky-header-context-bar\\">
|
|
<nav role=\\"navigation\\" aria-label=\\"\\" class=\\"vector-toc-landmark\\">
|
|
<div id=\\"vector-sticky-header-toc\\" class=\\"vector-menu vector-dropdown vector-menu-dropdown mw-portlet mw-portlet-sticky-header-toc vector-sticky-header-toc\\">
|
|
<input type=\\"checkbox\\" id=\\"vector-sticky-header-toc-checkbox\\" role=\\"button\\" aria-haspopup=\\"true\\" data-event-name=\\"ui.dropdown-vector-sticky-header-toc\\" class=\\"vector-menu-checkbox\\" aria-label=\\"\\" tabindex=\\"-1\\">
|
|
<label id=\\"vector-sticky-header-toc-label\\" for=\\"vector-sticky-header-toc-checkbox\\" class=\\"vector-menu-heading mw-ui-button mw-ui-quiet mw-ui-icon mw-ui-icon-element mw-ui-icon-wikimedia-listBullet\\" aria-hidden=\\"true\\" tabindex=\\"-1\\">
|
|
<span class=\\"vector-menu-heading-label\\"></span>
|
|
</label>
|
|
<div class=\\"vector-menu-content vector-dropdown-content\\">
|
|
|
|
</div>
|
|
</div> </nav>
|
|
<div class=\\"vector-sticky-header-context-bar-primary\\" aria-hidden=\\"true\\"></div>
|
|
</div>
|
|
</div>
|
|
<div class=\\"vector-sticky-header-end\\" aria-hidden=\\"true\\">
|
|
<div class=\\"vector-sticky-header-icons\\">
|
|
<a href=\\"#\\" id=\\"ca-talk-sticky-header\\" data-event-name=\\"talk-sticky-header\\" class=\\"mw-ui-button mw-ui-quiet mw-ui-icon mw-ui-icon-element mw-ui-icon-wikimedia-speechBubbles sticky-header-icon\\">
|
|
<span></span>
|
|
</a>
|
|
|
|
<a href=\\"#\\" id=\\"ca-history-sticky-header\\" data-event-name=\\"history-sticky-header\\" class=\\"mw-ui-button mw-ui-quiet mw-ui-icon mw-ui-icon-element mw-ui-icon-wikimedia-history sticky-header-icon\\">
|
|
<span></span>
|
|
</a>
|
|
|
|
<a href=\\"#\\" id=\\"ca-watchstar-sticky-header\\" data-event-name=\\"watch-sticky-header\\" class=\\"mw-ui-button mw-ui-quiet mw-ui-icon mw-ui-icon-element mw-ui-icon-wikimedia-star sticky-header-icon mw-watchlink\\">
|
|
<span></span>
|
|
</a>
|
|
|
|
<a href=\\"#\\" id=\\"ca-ve-edit-sticky-header\\" data-event-name=\\"ve-edit-sticky-header\\" class=\\"mw-ui-button mw-ui-quiet mw-ui-icon mw-ui-icon-element mw-ui-icon-wikimedia-edit sticky-header-icon\\">
|
|
<span></span>
|
|
</a>
|
|
|
|
<a href=\\"#\\" id=\\"ca-edit-sticky-header\\" data-event-name=\\"wikitext-edit-sticky-header\\" class=\\"mw-ui-button mw-ui-quiet mw-ui-icon mw-ui-icon-element mw-ui-icon-wikimedia-wikiText sticky-header-icon\\">
|
|
<span></span>
|
|
</a>
|
|
|
|
<a href=\\"#\\" id=\\"ca-viewsource-sticky-header\\" data-event-name=\\"wikimedia-editLock\\" class=\\"mw-ui-button mw-ui-quiet mw-ui-icon mw-ui-icon-element mw-ui-icon-wikimedia-star sticky-header-icon\\">
|
|
<span></span>
|
|
</a>
|
|
|
|
</div>
|
|
<div class=\\"vector-sticky-header-buttons\\">
|
|
|
|
<button id=\\"p-lang-btn-sticky-header\\" tabindex=\\"-1\\" data-event-name=\\"ui.dropdown-p-lang-btn-sticky-header\\" class=\\"mw-ui-button mw-ui-quiet mw-interlanguage-selector\\">
|
|
<span class=\\"mw-ui-icon mw-ui-icon-wikimedia-language\\"></span><span>0 languages</span>
|
|
|
|
</button>
|
|
</div>
|
|
<div class=\\"vector-sticky-header-icon-end\\">
|
|
<div class=\\"vector-user-links\\">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
"
|
|
`;
|