permalink |
---|
/index.html |
- Single and multiple item(s) accordions.
.open
class hardcoded on accordion content.
.open
class toggled on accordion content. -- Note: there is a slight jump when the multiple acccordion page is first loaded. This is because of the hardcodedopen
class.- ARIA attributes
[aria-hidden="true"]
and[aria-expanded="true"]
added dynamically to indicate state of accordion content. tabindex="0"
toggled on first child of accordion content (in this example anh3
) to set/unset focus.
- All accordion content is displayed (because the
.open
class is not removed by Javascript).
- Tested on:
- Windows 10
- Chrome
- Firefox
- Microsoft Edge
- Windows 10