Description
The collapsible list of languages on Wikimedia portals has a few issues
- The 'articles' text inside each ".bookshelf" element is being read out to screen readers even when the list is collapsed
- The toggle button ".js-lang-list-button" should have semantics describing it is collapsing button, and the state of the collapsed list. i.e. disclosure pattern
- ".bookshelf-container" elements should not use h2 elements.
Developer notes
This could be an opportunity to consider using the <details> element