-
Notifications
You must be signed in to change notification settings - Fork 6.8k
fix(material/slide-toggle): Fix a11y issues by hiding label when it has no content. #32480
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
base: main
Are you sure you want to change the base?
Conversation
f85c951 to
a6880e3
Compare
a6880e3 to
8df50fa
Compare
24cad4f to
d684ef6
Compare
|
Deployed dev-app for e93609f to: https://ng-dev-previews-comp--pr-angular-components-32480-dev-8wd8hfe4.web.app Note: As new commits are pushed to this pull request, this link is updated after the preview is rebuilt. |
|
Deployed docs-preview for 97fc2d0 to: https://ng-dev-previews-comp--pr-angular-components-32480-docs-jpaocuag.web.app Note: As new commits are pushed to this pull request, this link is updated after the preview is rebuilt. |
0b34f44 to
6b8cbb4
Compare
5eae231 to
e93609f
Compare
e93609f to
97fc2d0
Compare
Fixes a11y issues when no label is used, but the label wrapper (with an onclick) is still present. This can lead to an extra interactive tab-stop depending on the screen reader used.
The label element is now set to
display: noneif it is empty.