Skip to content

Commit

Permalink
docs(dialog): update demo wording
Browse files Browse the repository at this point in the history
Co-authored-by: Benny Powers - עם ישראל חי! <[email protected]>
  • Loading branch information
adamjohnson and bennypowers authored Jan 2, 2025
1 parent f7d1fc4 commit 93fbfd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elements/rh-dialog/demo/no-headings.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<rh-button id="no-headings-trigger">Open</rh-button>
<rh-dialog accessible-label="This dialog's accessible name" trigger="no-headings-trigger">
<p>This dialog uses the <code>accessible-label</code> attribute to define its <code>aria-label</code>.
<p>This dialog uses the <code>accessible-label</code> attribute to define its accessible name for assistive technology.
If the dialog includes a heading, the heading automatically becomes its accessible name—as long as the
<code>accessible-label</code> attribute does not exist. If neither a heading nor the <code>accessible-label</code>
attribute are provided, the dialog's accessible name defaults to the text content of its trigger element.
Expand Down

0 comments on commit 93fbfd5

Please sign in to comment.