Skip to main content
Workforce LibreTexts

6.5: Activity 9- Accessible Accordion

  • Page ID
    15623
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)

    activity_sm.png

    Accessible Accordion

    Based on the Accordion details on the previous page, apply what you have learned to the associated activity files to make the accordion there accessible.

    Files for this activity include:

    Use the surroundings of the highlighted code on the previous page as a guide to find where the fixes should be applied. Repair the accessibility of the accordion by applying the highlighted code to the /assets/ik_accordion.js file.

    Note: While we suggest using the highlighted code we’ve provided, you are free to come up with your own solutions provided they produce the expected results listed in the marking rubric below.

    Test your updated accordion with ChromeVox to ensure each element described in the marking rubric below is functioning as suggested.

    Requirements

    When you have applied your changes and tested to be sure your accordion functions as described, submit the URL to your accordion.html file on your GitHub Pages site, to the file on the web server you are using to host your copy of the activity files, or a GitHack URL.

    Grading Rubric

    Criteria Points
    Header Focus:
    Accordion headers are keyboard focusable.
    1.0 pts
    Headers as Buttons:
    Accordion headers are announced as buttons instead of list items.
    2.0 pts
    Open Panels:
    Accordion headers open panels with a click or key press.
    2.0 pts
    Expand/Collapse:
    Accordions announce expanded when a panel is opened and collapsed when closed.
    2.0 pts
    Panels Focusable:
    Accordion panels are focusable with a Tab key press when opened.
    2.0 pts
    Header Navigation:
    Navigation between accordion headers with Up and Down Arrow keys, and the Tab key.
    1.0 pts
    Total Points: 10.0

    6.5: Activity 9- Accessible Accordion is shared under a CC BY-SA license and was authored, remixed, and/or curated by Digital Education Strategies, The Chang School.

    • Was this article helpful?