Skip to content

Commit

Permalink
Merge pull request #54 from lukewarlow/aria-expanded
Browse files Browse the repository at this point in the history
Add note about aria
  • Loading branch information
keithamus authored Feb 18, 2025
2 parents f8b2ce5 + c3252f8 commit a9f8982
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,8 @@ With the module imported, you can add `commandfor` and `command` attributes to y
<button commandfor="my-dialog" command="show-modal">Open Dialog!</button>
<dialog id="my-dialog">I'm a dialog!</dialog>
```

## Limitations

This polyfill does not handle the aria (e.g. `aria-expanded`) of the command button the way browsers do.
You are *strongly* encouraged to handle this state yourself, to ensure your site is accessible.

0 comments on commit a9f8982

Please sign in to comment.