Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Communicating Widget States (replaced by #1277) #1057

Closed
wants to merge 8 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions widget-states.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
Issue for this section: https://github.com/w3c/aria-practices/issues/254

Related issues:
https://github.com/w3c/aria/issues/1008
https://github.com/w3c/aria/issues/681#issuecomment-506703445


## Widget States

aria-selected
aria-checked
aria-pressed
aria-expanded
aria-disabled
aria-readonly


HTML equivalents:

```
<input readonly>
<input disabled>
<input type=checkbox checked>
<input type=checkbox>.indeterminate = true; <-> aria-checked = undefined
zcorpan marked this conversation as resolved.
Show resolved Hide resolved
```

Push button can be implemented as:
```
<button> + aria-pressed, -webkit-appearance: none; for easier styling
```