Clare Ming
28a3c06cdf
Replace TOC arrow icon
...
Bug: T304166
Change-Id: I182c9e5399d95ecea58dcdabb563a98b4e34e47e
2022-04-11 14:56:42 -06:00
bwang
f1c70e99b7
Update sticky header to use ARIA attributes for section collapsing and add accessible label to toggle buttons
...
Bug: T303766
Change-Id: Idda4f286a42152af1d233588a1839ada5491ce95
2022-04-06 17:24:34 -05:00
bwang
aa8ec1a878
Revert unnecessary TOC section id change
...
Change-Id: I62736b47557b79929b8ad984d6709e762b3db549
2022-04-05 15:38:00 -05:00
bwang
733990f881
Small clean up and TOC update
...
Change-Id: Ic093888cb2b06d8eef95a1317d791e7e1627d0f6
2022-04-01 13:14:02 -05:00
Clare Ming
1d574b86f1
Add fade to indicate scrollability in TOC
...
Bug: T302076
Change-Id: Ib803239602333e2a8232a26a10477a0f9933b819
2022-03-28 15:58:26 -06:00
jenkins-bot
cd04b72058
Merge "Table of contents links to beginning of article"
2022-03-24 23:51:52 +00:00
Jon Robson
dfdf72140c
Table of contents links to beginning of article
...
Bug: T301254
Change-Id: Icb0b0646f81c1070c8f47dd3297225a074f74773
2022-03-24 20:46:35 +00:00
bwang
ac54984d75
Add data-event-name attributes to legacy and sidebar TOC
...
Bug: T302934
Depends-on: I5ef98d5f5713d3d99bc5f7f8112ba2d1e0f62e22
Change-Id: I5806c346abf0375c85248659c636ae3b2d73f661
2022-03-21 22:32:56 +00:00
Jdlrobson
f7a859bac5
Revert "build: Update eslint-config-wikimedia to 0.22.1"
...
This reverts commit b72c648d21
.
Reason for revert: Causes an issue with the search
(See https://phabricator.wikimedia.org/F35009362 )
Change-Id: I09f7e5c9eab677bfd5a92cf2d8389d20a2d6e87a
2022-03-16 23:40:42 +00:00
Ed Sanders
b72c648d21
build: Update eslint-config-wikimedia to 0.22.1
...
Change-Id: If632697f7c3bb3fad6668d791d9408f7b7a3590b
2022-03-16 15:42:07 +00:00
bwang
5f0c0cb294
Use TOC template data for showing collapsible section arrows
...
Bug: T299361
Depends-on: I8ab5c0543b898d1df9399a1cb39672c45daf2acd
Change-Id: Ib68de8cd97cc1111a5a33e100e688d6832fc7e6e
2022-02-22 15:47:23 -06:00
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
bwang
301e09916d
Toggle ToC sections when clicking toggle button
...
Bug: T300167
Change-Id: If1150a9e018b232da900187383aaee9c9cf331a1
2022-02-16 15:48:28 -06:00
bwang
66359e8fa5
Setup jest unit tests and add basic test cases for AB.js and App.vue
...
Bug: T300561
Change-Id: Ib7c314b094bd823ae233374f63c9094724d6c06f
2022-01-31 20:50:33 +00:00