mediawiki-skins-Vector/includes/templates
Nicholas Ray 6e9506dcad Dynamically expand/collapse sub-sections in ToC based on # of headings
Server render the table of contents in a collapsed state when the total
number of headings is equal or greater than the value of
`$wgVectorTableOfContentsCollapseAtCount`. Otherwise, the table of
contents will be server rendered in its "expanded" state.

In addition:

* Revise table of contents tests to call one `assertion` per element so
  that it is easier to see the exact element that may fail an assertion.
* Revise table of contents tests to call a mount function that can merge
  props to allow for a more flexible set of tests.
* Revise table of contents tests by wrapping a `describe` around tests
  that expect the same prop state.
* Adds typedef for table of sections props

Bug: T300973
Depends-On: Ifaee451e1903f2accd0ada2f2ed6dfa3f83037b6
Change-Id: I382200bc603b6abf757a91f14a8a55a6581969bd
2022-02-21 14:58:51 -07: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 Offset the TableOfContents top property only when the sticky header is shown 2022-02-17 12:20:15 -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 Dynamically expand/collapse sub-sections in ToC based on # of headings 2022-02-21 14:58:51 -07: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