CaptainCodeman / svelte-headlessui

HeadlessUI components for Svelte
https://captaincodeman.github.io/svelte-headlessui/
MIT License
529 stars 25 forks source link

Disclosure Accessibility isues: missing some or all of the required children #57

Closed bennymi closed 1 year ago

bennymi commented 1 year ago

Hi, I've noticed this error pop up when running a lighthouse report on the disclosure component example:

Elements with an ARIA [role] that require children to contain a specific [role] are missing some or all of those required children.

image

It's probably because of the role="menu" that is being applied by the panel, but I'm not sure which other children are required.

CaptainCodeman commented 1 year ago

Thanks, I'll look into it - my initial reaction is that the menu role is probably being set when it shouldn't be.

CaptainCodeman commented 1 year ago

Yes, that was it - thanks again for the report!