A tiny script for accessible content toggles.
<button>
toggles (#25)<head>
(#24)data-a11y-toggle-open
attribute on target (#22)console.log(..)
(https://github.com/edenspiekermann/a11y-toggle/commit/3acd3794b2a918a16aef9931346d0d1ee3d991ab)closest(..)
helper to use Element.closest
when supported (https://github.com/edenspiekermann/a11y-toggle/commit/508172f3fc5a778a8d105279128cc695f5159418)