Add switch example using HTML checkbox input#1895
Conversation
|
https://www.w3.org/TR/html-aria/#el-input-checkbox states NOTE The validator is wrong |
|
@jnurthen |
|
No - see the note at https://w3c.github.io/aria/#requiredState |
|
@mcking65 |
|
I would suggest not to use CSS generated content as it is not supported screen readers on older versions, it is difficult to localize, difficult to change style by the user. Suggest to have _ |
|
Functional review: Chrome, Firefox, and Safari:
Safari:
|
|
If you use user-select: none; then VO/safari ignores the control. |
|
@mcking65
|
zcorpan
left a comment
There was a problem hiding this comment.
Code review: 1 comment, otherwise LGTM
Test review: LGTM
|
Edit: now it's green. Log output |
| -webkit-user-select: none; | ||
| -moz-user-select: none; | ||
| -ms-user-select: none; | ||
| user-select: none; |
There was a problem hiding this comment.
This doesn't follow https://github.com/w3c/aria-practices/wiki/Code-Guide#prefixed-properties
Should we remove that section of the code guide?
There was a problem hiding this comment.
|
Test review: LGTM |
Co-authored-by: Simon Pieters <zcorpan@gmail.com>
Co-authored-by: Simon Pieters <zcorpan@gmail.com>
Co-authored-by: Simon Pieters <zcorpan@gmail.com>
Co-authored-by: Simon Pieters <zcorpan@gmail.com>
|
@jongund, If I recall correctly, you were going to look into removeing browser prefixes from the css if possible? I think we found out it is necessary for webkit but may not the others? Not sure if I am remembering this correctly. |
|
@mcking65 Updated CSS to remove -moz-user-select and -ms-user-select properties. |
|
@zcorpan |
|
Code review: LGTM |
Preview link
Preview | Diff