diff --git a/third_party/aria-practices/src/content/patterns/button/examples/button.html b/third_party/aria-practices/src/content/patterns/button/examples/button.html index a99be16fcff4c..621acc7e82571 100644 --- a/third_party/aria-practices/src/content/patterns/button/examples/button.html +++ b/third_party/aria-practices/src/content/patterns/button/examples/button.html @@ -2,57 +2,13 @@ - Button Examples - - - - - - - - - - -
-

Button Examples

- -
-

About This Example

- -

The following command and toggle button examples demonstrate the Button Pattern.

-

Similar examples include:

- -
- -
-
-

Example

-
- - -

This Print action button uses a div element.

Print Page
@@ -81,145 +37,5 @@
- - -
- -
-

Keyboard Support

- - - - - - - - - - - - - - - - - - -
KeyFunction
EnterActivates the button.
SpaceActivates the button.
-
- -
-

Role, Property, State, and Tabindex Attributes

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
RoleAttributeElementUsage
buttondiv, a -
    -
  • Identifies the element as a button widget.
  • -
  • Accessible name for the button is defined by the text content of the element.
  • -
-
- tabindex="0" - div, a -
    -
  • Includes the element in the tab sequence.
  • -
  • Needed on the a element because it does not have a href attribute.
  • -
-
aria-pressed="false"a -
    -
  • Identifies the button as a toggle button.
  • -
  • Indicates the toggle button is not pressed.
  • -
-
aria-pressed="true"a -
    -
  • Identifies the button as a toggle button.
  • -
  • Indicates the toggle button is pressed.
  • -
-
-
- -
-

Assistive Technology Support

-

Learn how to interpret and use assistive technology support data

-

Command Button

- - -

Toggle Button

- -
- -
-

JavaScript and CSS Source Code

- - -
- -
-

HTML Source Code

-

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

- -
- - -
- -