Leaflet / Leafdoc

A lightweight NaturalDocs-like LeafletJS-style documentation generator
54 stars 19 forks source link

Keyboard accessible accordions #61

Open Malvoz opened 2 years ago

Malvoz commented 2 years ago

From https://github.com/Leaflet/Leaflet/discussions/8006#discussioncomment-2228800:

Misc / General site issues

  • [ ] Accordions in the Leaflet API reference are not keyboard accessible. Replace custom <div> accordion (inherited.hbs, reference.js) with <details>? Or handle it via tabindex="0", role="button", aria-expanded, etc.? This is (also) a Leafdoc accordion issue.

Support data for <details> and <summary>: https://caniuse.com/details.

I'm not sure if/when I'll get to this, hopefully others can contribute.

Malvoz commented 2 years ago

Maybe this should wait until "auto-expand <details> on find-in-page and fragment navigations" is widely supported.

Filed https://github.com/Fyrd/caniuse/issues/6472.