mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-12-11 07:26:10 +00:00
97147857b2
* Removes server rendered vector-tab-noicon class from legacy Vector as it is not currently used. * Adds menuTabs.js responsible for adding the vector-tab-noicon class when menu items are added to tabbed menus. This is only used in vector-22. * Adds unit test Bug: T320691 Change-Id: Iffad86125f8754305f592ddc19d894866bd6dedc
38 lines
1.1 KiB
Plaintext
38 lines
1.1 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`menuTabs adds vector-tab-noicon class to li element when part of tabs 1`] = `
|
|
"
|
|
<div id=\\"p-views\\" class=\\"vector-menu mw-portlet mw-portlet-views vector-menu-tabs\\">
|
|
<div class=\\"vector-menu-content\\">
|
|
<ul class=\\"vector-menu-content-list\\">
|
|
<li class=\\"mw-list-item mw-list-item-js vector-tab-noicon\\" id=\\"test-id\\">
|
|
<a href=\\"#test-href\\">
|
|
<span>
|
|
test link content
|
|
</span>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
"
|
|
`;
|
|
|
|
exports[`menuTabs does not add vector-tab-noicon class to li element when not part of tabs 1`] = `
|
|
"
|
|
<div id=\\"p-variants\\" class=\\"vector-menu mw-portlet mw-portlet-variants vector-menu-dropdown-noicon vector-menu-dropdown\\">
|
|
<div class=\\"vector-menu-content\\">
|
|
<ul class=\\"vector-menu-content-list\\">
|
|
<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>
|
|
</div>
|
|
"
|
|
`;
|