diff --git a/third_party/aria-practices/src/content/patterns/disclosure/examples/disclosure-faq.html b/third_party/aria-practices/src/content/patterns/disclosure/examples/disclosure-faq.html index 38e2fd598e6ef..c13938def2750 100644 --- a/third_party/aria-practices/src/content/patterns/disclosure/examples/disclosure-faq.html +++ b/third_party/aria-practices/src/content/patterns/disclosure/examples/disclosure-faq.html @@ -2,55 +2,13 @@ - Example Disclosure (Show/Hide) for Answers to Frequently Asked Questions - - - - - - - - - -
-

Example Disclosure (Show/Hide) for Answers to Frequently Asked Questions

- -
-

About This Example

- -

- The following example demonstrates using the Disclosure Pattern to create a set of frequently asked questions where the answers may be independently shown or hidden. -

-

Similar examples include:

- -
- -
-
-

Example

-
-

Parking FAQs

    @@ -86,158 +44,5 @@
- -
- -
-

Accessibility Features

- -
- -
-

Keyboard Support

- - - - - - - - - - - - - - - - - -
KeyFunction
- Tab - Moves keyboard focus to the disclosure button.
- Space or
- Enter -
Activates the disclosure button, which toggles the visibility of the answer to the question.
-
- -
-

Role, Property, State, and Tabindex Attributes

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
RoleAttributeElementUsage
- aria-controls="ID_REFERENCE" - buttonIdentifies the element controlled by the disclosure button.
- aria-expanded="false" - - button - -
    -
  • Indicates that the container controlled by the disclosure button is hidden.
  • -
  • - CSS attribute selectors (e.g. [aria-expanded="false"]) are used to synchronize the visual states with the value of the aria-expanded attribute. -
  • -
  • The visual indicator of the show/hide state is created using CSS :before pseudo element and content property so the image is reliably rendered in high contrast mode of operating systems and browsers.
  • -
-
- aria-expanded="true" - - button - -
    -
  • Indicates that the container controlled by the disclosure button is visible.
  • -
  • - CSS attribute selectors (e.g. [aria-expanded="true"]) are used to synchronize the visual states with the value of the aria-expanded attribute. -
  • -
  • The visual indicator of the show/hide state is created using CSS :before pseudo element and content property so the image is reliably rendered in high contrast mode of operating systems and browsers.
  • -
-
-
- -
-

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.

- -
- - -
-