Key / stateFunctionTab, Shift-TabMoves focus to the next (or previous) focusable element.Enter/SpaceWhen focus is on the accordion header, the associated panel expands or collapses.
ARIA enhancements
Internal ARIA that is managed by the component:
prev
next
ARIAUsagearia-expanded="BOOLEAN"Exposes expanded or collapsed state.aria-controls="IDREF"Exposes relationship of header and associated panel.role="region"Creates a landmark region that contains the accordion panel.aria-labelledby="IDREF"Defines the accessible name.
The heading-tag property needs to be set in order for the accordion to fit into the outline of the page. If there is
no heading-tag property provided, it defaults to h2.