mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-15 03:34:25 +00:00
8e4da83908
Using PinnableElement in the TOC allows us to reuse styles associated with all PinnableElements, and helps ensure consistency between page tools and the TOC. This is something that would probably need to be done for T324505 anyway Rather than updating PinnableElement to accept a class prop, I chose to rename '.sidebar-toc' to '.vector-toc', making the TOC's naming conventions consistent with the rest of Vector. "sidebar" doesn't make sense anymore anyway, as the TOC can be in multiple locations and it's best to avoid the "sidebar" term Bug: T324877 Change-Id: I5b9228380f5c4674ef424d33127a5cb4010822da
16 lines
574 B
Plaintext
16 lines
574 B
Plaintext
{{>PinnableElement/Open}}
|
|
<ul class="vector-toc-contents sidebar-toc-contents" id="mw-panel-toc-list">
|
|
{{#is-vector-toc-beginning-enabled}}
|
|
<li id="toc-mw-content-text"
|
|
class="vector-toc-list-item vector-toc-level-1 sidebar-toc-list-item sidebar-toc-level-1">
|
|
<a href="#" class="vector-toc-link sidebar-toc-link">
|
|
<div class="vector-toc-text sidebar-toc-text">{{ msg-vector-toc-beginning }}</div>
|
|
</a>
|
|
</li>
|
|
{{/is-vector-toc-beginning-enabled}}
|
|
{{#array-sections}}
|
|
{{>TableOfContents__line}}
|
|
{{/array-sections}}
|
|
</ul>
|
|
{{>PinnableElement/Close}}
|