diff --git a/third_party/aria-practices/src/content/patterns/alertdialog/examples/alertdialog.html b/third_party/aria-practices/src/content/patterns/alertdialog/examples/alertdialog.html index 890df9c4b831c..be914bd503fc5 100644 --- a/third_party/aria-practices/src/content/patterns/alertdialog/examples/alertdialog.html +++ b/third_party/aria-practices/src/content/patterns/alertdialog/examples/alertdialog.html @@ -2,72 +2,13 @@ - Alert Dialog Example - - - - - - - - - - -
-

Alert Dialog Example

- -
-

About This Example

- -

- The below example of a confirmation prompt demonstrates the Alert Dialog Pattern. - It also includes an example of the Alert Pattern to make comparing the experiences provided by the two patterns easy. -

-

To use this example:

- -

Similar examples include:

- -
- -
-
-

Example

-
-
@@ -95,155 +36,5 @@
- -
- -
-

Accessibility Features

- -
- -
-

Keyboard Support

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
KeyFunction
Tab -
    -
  • Moves focus to next focusable element inside the dialog.
  • -
  • When focus is on the last focusable element in the dialog, moves focus to the first focusable element in the dialog.
  • -
-
Shift + Tab -
    -
  • Moves focus to previous focusable element inside the dialog.
  • -
  • When focus is on the first focusable element in the dialog, moves focus to the last focusable element in the dialog.
  • -
-
EscapeCloses the dialog.
Command + S(Mac only) Save the contents of the notes textarea when focused.
Control + S(Windows only) Save the contents of the notes textarea when focused.
-
- -
-

Role, Property, State, and Tabindex Attributes

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
RoleAttributeElementUsage
alertdialogdivIdentifies the element that serves as the alert dialog container.
aria-labelledby="ID_REFERENCE"divGives the alert dialog an accessible name by referring to the element that provides the alert dialog title.
aria-describedby="ID_REFERENCE"divGives the alert dialog an accessible description by referring to the alert dialog content that describes the primary message or purpose of the alert dialog.
aria-modal="true"divTells assistive technologies that the windows underneath the current alert dialog are not available for interaction (inert).
alertdivIdentifies the element that serves as the alert notification.
aria-disabled="true"buttonTells assistive technology users the button cannot be activated.
-

Notes on aria-modal and aria-hidden

- -
- -
-

JavaScript and CSS Source Code

- -
- -
-

HTML Source Code

-

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

- -
- - -
-