Description
We are moving the table of contents to the side of the article text, and making it sticky (i.e. it stays in place as your scroll down the page). Currently our plan is to only do this for pages in the main namespace, in read mode. Assuming people frequently go from read mode to edit mode, it might make sense to consider this transition, in particular thinking about the visual balance/layout of the page changes between the two as major elements shift around.
Questions to answer
Do we want to show the table of contents in edit mode?
If yes:
- what are the technical, design, and product considerations we need to think through?
If no:
- what do we prefer?
- that space is empty
- re-center page
- don't re-recenter page
- that space is occupied by some other element
- that space is used to display the page full-width
- that space is empty
Reference images
Acceptance criteria
- (regression compared to old Vector) Display the Vector 2022 TOC while previewing in old wikitext editor – T307256
- Fixed
- (regression compared to old Vector) Display the Vector 2022 TOC while previewing in old wikitext editor with live preview enabled – [no task]
- It was fixed once, but then it broke again. Currently, it only works if you start from action=edit&preview=yes, but it does not work if there is no TOC shown on the initial page view.
- (regression compared to old Vector) Display the Vector 2022 TOC while previewing in 2017 wikitext editor [no task]
- Not done
- (new feature) Display the Vector 2022 TOC while editing in visual editor – T380598
- Not done
- (new feature) Display the Vector 2022 TOC while editing in 2017 wikitext editor [no task]
- Not done

