mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-12-25 06:03:10 +00:00
15d95fc24a
Changes: * Code is moved from SkinVector to SkinVectorLegacy verbatim since it is now only needed by SkinVectorLegacy so we remove it: ** This step broke MainMenu rendering so this was captured in VectorComponentMainMenu ** The isLegacy code no longer makes sense and is removed in a follow up * storybook no longer run on CI Authors: Bernard Wang and Jon Robson Bug: T321102 Bug: T319349 Change-Id: Ib424ca1c767161fdae8c0aeedfe662b7fa039ff6
53 lines
1.3 KiB
Plaintext
53 lines
1.3 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`addPortletLinkHandler Adds a span with icon class to dropdown menus 1`] = `
|
|
"
|
|
<ul class=\\"vector-menu vector-menu-dropdown\\">
|
|
<li class=\\"mw-list-item mw-list-item-js\\" id=\\"test-id\\">
|
|
<a href=\\"#test-href\\">
|
|
<span>
|
|
test link content
|
|
</span>
|
|
</a>
|
|
</li>
|
|
</ul>"
|
|
`;
|
|
|
|
exports[`addPortletLinkHandler Does not add an icon when noicon class is present 1`] = `
|
|
"
|
|
<ul class=\\"vector-menu vector-menu-dropdown vector-menu-dropdown-noicon\\">
|
|
<li class=\\"mw-list-item mw-list-item-js\\" id=\\"test-id\\">
|
|
<a href=\\"#test-href\\">
|
|
<span>
|
|
test link content
|
|
</span>
|
|
</a>
|
|
</li>
|
|
</ul>"
|
|
`;
|
|
|
|
exports[`addPortletLinkHandler JS portlet should be moved to more menu (#p-cactions) at narrow widths 1`] = `
|
|
"
|
|
<div class=\\"mw-article-toolbar-container\\" style=\\"width:1000px\\">
|
|
|
|
<div id=\\"p-namespaces\\" style=\\"width:1001px\\"></div>
|
|
|
|
<div id=\\"p-variants\\"></div>
|
|
|
|
<div id=\\"p-cactions\\">
|
|
<ul>
|
|
</ul>
|
|
</div>
|
|
|
|
<ul id=\\"p-views\\" class=\\"vector-menu vector-menu-dropdown\\">
|
|
<li class=\\"mw-list-item mw-list-item-js\\" id=\\"test-id\\">
|
|
<a href=\\"#test-href\\">
|
|
<span>
|
|
test link content
|
|
</span>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</div>"
|
|
`;
|