List of steps to reproduce (step by step, including full links if applicable):
- Create a site notice, or manually put text inside #siteNotice
- Collapse the TOC by pressing the "hide" button or by reducing the view
- Click the TOC button
What happens?:
What should have happened instead?:
Developer notes
Introduced with approach taken in T308689
POC for the fix
https://gerrit.wikimedia.org/r/c/mediawiki/skins/Vector/+/804616/