()
| 23 | |
| 24 | /** the top nav's menu button, which opens the drawer on phones */ |
| 25 | export const MenuButton = () => ( |
| 26 | <button |
| 27 | type="button" |
| 28 | id={menuButtonId} |
| 29 | className="tb-icon tb-menu" |
| 30 | aria-label="Open navigation" |
| 31 | aria-controls="drawer" |
| 32 | aria-expanded={useDrawerOpen()} |
| 33 | onClick={() => setDrawerOpen(true)} |
| 34 | > |
| 35 | <MenuIcon aria-hidden /> |
| 36 | </button> |
| 37 | ) |
| 38 | |
| 39 | /** what the open drawer covers, which can't take focus while it is open */ |
| 40 | const backgroundSelector = ".skip, .topbar, #main" |
nothing calls this directly
no test coverage detected