mediawiki-skins-Vector/includes/templates
Jan Drewniak 7d32ec80d3 Collapse ToC by default & expand sections when clicking section headings
Collapses sub-sections in the new table of contents by default
(except for non-js and reduced-motion users) and expands the
sections when the top-level section link has been clicked.

Refactors the `activateSection` TableOfContents methods into separate
`activateSection` and `deactivateSection` functions.
Adds `expandSection` and `collapseSection` methods.

Adds triangle icon as a visual expand/collapsed indicator
next to all ToC section headings and are hidden via CSS based on
whether or not the section contains subsections.

Adds test for tableOfContents.

Bug: T299361
Change-Id: I36b3ae7f9f633877683bc17a9444c970d7fa7293
2022-02-15 00:09:50 -05:00
..
legacy Storybook should include UserLinks 2021-05-27 19:27:27 +00:00
Button.mustache Fix icon button spacing, make it consistent with margin defined in core 2021-11-18 18:55:00 +00:00
Footer.mustache Use content-parser-output RL SkinModule feature 2021-03-25 17:34:28 +00:00
Footer__row.mustache templates: Move spaces into conditions for cleaner html 2021-09-29 14:06:07 +02:00
Header.mustache [Storybook] Add Header component 2021-09-14 18:33:10 +00:00
Indicators.mustache Remove mw-body-content from HTML that is not the article body 2021-05-14 00:01:52 +00:00
Logo.mustache Logo scales with font-size 2021-09-28 21:44:53 +00:00
Menu.mustache Restores language button icon font size 2021-12-01 01:08:49 +00:00
Navigation.mustache Improve heading structure and heading semantics by removing redundant headings and labels for modern Vector 2021-09-14 10:47:05 -05:00
SearchBox.mustache templates: Move spaces into conditions for cleaner html 2021-09-29 14:06:07 +02:00
Sidebar.mustache Add language switching alert in sidebar for language in header 2021-12-09 16:37:36 -07:00
SidebarAction.mustache Remove need for html-class template property 2021-12-10 08:40:01 -08:00
skin-legacy.mustache Vector uses html-title-heading 2021-12-15 22:27:48 +00:00
skin.mustache Rely on core TOC data to show the TOC in Vector 2022-01-26 16:14:17 -06:00
StickyHeader.mustache Fix article title in sticky header template. 2021-10-18 14:00:47 -06:00
TableOfContents.mustache Collapse ToC by default & expand sections when clicking section headings 2022-02-15 00:09:50 -05:00
TableOfContents__line.mustache Collapse ToC by default & expand sections when clicking section headings 2022-02-15 00:09:50 -05:00
TableOfContents__topSection.mustache Collapse ToC by default & expand sections when clicking section headings 2022-02-15 00:09:50 -05:00
UserLinks.mustache Consolidate user links outside of the user menu dropdown into a single new menu 2021-07-15 20:27:54 +00:00
UserLinks__login.mustache User menu design tweaks 2021-07-27 14:25:32 -06:00
UserLinks__logout.mustache [a11y] Add title attributes to logout, talk and history and DRY up code. 2021-10-19 08:47:00 -07:00
UserLinks__more.mustache [Refactor] simplify watchlist link generation and adopt new icon 2022-01-14 00:26:10 +00:00