Description
The table of contents is presented as a sidebar by default. It can also be presented as a menu (this happens automatically below 1000px, and there will eventually be a control that allows people to do this manually). This task is about two clicking behavior things.
When the TOC menu is open (at any screen size):
- clicking anywhere outside the TOC menu should close it
- clicking on a link within the TOC menu should close it (note: this also automatically scrolls you to that section).
- Example of another menu on our site that works like this (from Recent changes):
Documentation of current behavior
AC
- Clicking outside of the collapsed TOC button will close it
- Clicking on a link inside the collapsed TOC menu will close it
- collapsed TOC menu can be toggled with enter or space button

