Open batpigandme opened 1 year ago
Thanks for the report! We're just about to start the 1.3 release candidate, so I'm putting this to 1.4, but we'll def fix it there.
Thanks @cscheid—incoming one for a similar pattern issue with the toggles in the left sidebar menu (should also be a button). @gtritchie has thankfully provided a very nice pattern for the fix!
Looking at this again, the accordion pattern may be a closer fit than the disclosure approach: https://www.w3.org/WAI/ARIA/apg/patterns/accordion/.
Bug description
Collapsed callouts when rendered use an invalid/inaccessible pattern where the ARIA attribute
aria-expanded="false"
is invalid [link to axe DevTools issue found when attached qmd is rendered].From discussion with @gtritchie, they should use the disclosure pattern and be buttons:
I can't seem to attach the actual qmd, so here it is in a gist collapsed-callout.qmd
Quarto check output
OS independent
Checklist
quarto check
so we know which version of quarto and its dependencies you're running.