-
Notifications
You must be signed in to change notification settings - Fork 4k
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
HTML checkboxes are not checked/unchecked when checkboxes are clicked #3000
Comments
This comment has been minimized.
This comment has been minimized.
@vthinkxie When you click the box itself instead of the label, the tick is still there. |
@wendzhue Yes, the opacity is to show when the nz-checkbox changes state and when the HTML checkbox changes state. Clicking on the label changes the state of both the nz-checkbox and the HTML checkbox. This is correct. |
This is no problem for sighted users, but for blind users and others using a screen reader it breaks the checkboxes. Antd do not have this problem. |
Reproduction link
https://ng-zorro-checkboxes.stackblitz.io
Steps to reproduce
What is expected?
What is actually happening?
So, this only happens when the actual HTML checkbox (hidden with opacity:0, on top of the nz-checkbox) is clicked (or keyboard triggered).
Clicking the label or the space between the label and the checkbox do work as expected.
Problem shown with partly transparent HTML checkbox:
This is not how antd works. See antd demo: https://14wkrozj1q.codesandbox.io/
This makes the NG-Zorro checkboxes useless for our blind users.
This can easily be tested with the screen reader ChromeVox, a free Chrome extension.
The text was updated successfully, but these errors were encountered: