Steps to replicate the issue (include links if applicable):
- Go to a wiki page with a table of contents with subsection toggles
- Inspect the toggles (.vector-toc-toggle) and see there is no label
What should have happened instead?:
There should be some sort of text inside the button element, this is a regression
Software version (skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):
Developer notes
The following line in VectorComponentTableofContents.php is supposed to provide the label. Probably something is wrong with the PHP or mustache.
$this->localizer->msg( 'vector-toc-toggle-button-label', $section['line'] )->text();
We should also make sure that this is covered by jest snapshot tests