diff --git a/third_party/aria-practices/src/content/patterns/accordion/examples/accordion.html b/third_party/aria-practices/src/content/patterns/accordion/examples/accordion.html index 25628526b6c3b..96a9c6204dd2a 100644 --- a/third_party/aria-practices/src/content/patterns/accordion/examples/accordion.html +++ b/third_party/aria-practices/src/content/patterns/accordion/examples/accordion.html @@ -2,41 +2,12 @@ - Accordion Example - - - - - - - - - -
-

Accordion Example

- -
-

About This Example

- -

The below example section contains a simple personal information input form divided into 3 sections that demonstrates the Accordion Pattern.

-
- -
-
-

Example

-
-

@@ -148,137 +119,6 @@

- -
- -
-

Keyboard Support

- - - - - - - - - - - - - - - - - - - - - -
KeyFunction
Space or EnterWhen focus is on the accordion header of a collapsed section, expands the section.
Tab -
    -
  • Moves focus to the next focusable element.
  • -
  • All focusable elements in the accordion are included in the page Tab sequence.
  • -
-
Shift + Tab -
    -
  • Moves focus to the previous focusable element.
  • -
  • All focusable elements in the accordion are included in the page Tab sequence.
  • -
-
-
- -
-

Role, Property, State, and Tabindex Attributes

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
RoleAttributeElementUsage
h3 -
    -
  • Element that serves as an accordion header.
  • -
  • Each accordion header element contains a button that controls the visibility of its content panel.
  • -
  • The example uses heading level 3 so it fits correctly within the outline of the page; the example is contained in a section titled with a level 2 heading.
  • -
-
aria-expanded="true"buttonSet to true when the Accordion panel is expanded, otherwise set to false.
aria-controls="ID"buttonPoints to the ID of the panel which the header controls.
regiondivCreates a landmark region that contains the currently expanded accordion panel.
aria-labelledby="IDREF"div -
    -
  • Defines the accessible name for the region element.
  • -
  • References the accordion header button that expands and collapses the region.
  • -
  • region elements are required to have an accessible name to be identified as a landmark.
  • -
-
-
- -
-

Assistive Technology Support

-

Learn how to interpret and use assistive technology support data

- -
- -
-

JavaScript and CSS Source Code

- -
- -
-

HTML Source Code

-

To copy the following HTML code, please open it in CodePen.

- -
- - -
-