-
Notifications
You must be signed in to change notification settings - Fork 355
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
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
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can track it in #2110
Test review: LGTM |
Co-authored-by: Simon Pieters <[email protected]>
Co-authored-by: Simon Pieters <[email protected]>
Co-authored-by: Simon Pieters <[email protected]>
Co-authored-by: Simon Pieters <[email protected]>
@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