[Bug][a11y]: AccordionItem should not have role="listitem" #3212
Labels
a11y
Issues related to accessibility
bug
Something isn't working
Component: Accordion
Spectrum CSS Bug
Code of conduct
Impacted component(s)
Accordion, AccordionItem
Expected behavior
sp-accordion-item
should not expresses its WAI-ARIArole
as alistitem
.Actual behavior
sp-accordion-item
expresses its WAI-ARIArole
as alistitem
but the containingsp-accordion
is not alist
.This seems to come from Spectrum-CSS, with:
spectrum-web-components/packages/accordion/src/spectrum-accordion-item.css
Line 45 in cd8c99f
Coming from
.spectrum-Accordion-item
:https://github.com/adobe/spectrum-css/blob/e9c58caecfcfa8dd71a25d582c2394ed120e6b5e/components/accordion/index.css#L53
Screenshots
No response
What browsers are you seeing the problem in?
Chrome, Safari
How can we reproduce this issue?
<sp-accordion-item>
element in the first Accordion example.<sp-accordion-item>
is identified as havingrole="listitem"
<sp-accordion>
element that contains the<sp-accordion-item>
in the first Accordion example.<sp-accordion>
has no role defined.Sample code that illustrates the problem
No response
Logs taken while reproducing problem
No response
Related issue: Spectrum CSS Issue #1884
The text was updated successfully, but these errors were encountered: