This website requires JavaScript.
Explore
Help
Register
Sign In
wikimedia
/
mediawiki-skins-Vector
Watch
1
Star
0
Fork
You've already forked mediawiki-skins-Vector
0
mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced
2024-12-18 10:51:10 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
53aac10d2b
mediawiki-skins-Vector
/
includes
/
templates
/
TableOfContents.mustache
4 lines
81 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Replace .sidebar-toc class with .vector-toc and use PinnableElement in TOC 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
2022-12-20 22:58:44 +00:00
{{>PinnableElement/Open}}
Update tableOfContents.js to rerender only the TOC contents rather than the entire pinnable element Extra: - Reactivated active list element, This still does not work if the current active gets edited. - Removed pinning event reattach as we do not replace teh full element anymore. Known Issues: - Collapse/Expand not working Bug: T326839 Change-Id: I2ce251f5312659b827ac2941d789248473bb0ef5
2023-01-16 11:39:05 +00:00
{{>TableOfContents__list}}
Replace .sidebar-toc class with .vector-toc and use PinnableElement in TOC 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
2022-12-20 22:58:44 +00:00
{{>PinnableElement/Close}}
Reference in a new issue
Copy permalink