This repository was archived by the owner on Sep 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
fix(checkbox): handle links in transcluded label in an a11y-friendly way #11154
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jelbourn
reviewed
Mar 8, 2018
9c8764f
to
79f3d96
Compare
212d940
to
9882de3
Compare
jelbourn
approved these changes
Mar 12, 2018
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.
LGTM
There are several broken screenshot tests involving checkboxes that contain links |
I am going to push this to 1.2.0 for now and investigate the autocomplete a11y issues. They are also likely to require breaking changes to fix. The combination of these breaking changes along with possible breaking changes for chips and select a11y and other breaking changes related to Material Design Spec alignment should make a good case for putting out a 1.2.0 release.
|
9882de3
to
a8b31bd
Compare
- JAWS and Voiceover should properly handle links in md-checkbox labels - Wrapping the checkbox in a `md-input-container` is required - for using links in checkbox labels due to layout considerations - Add new demos for different types of a11y checkbox labels - don't toggle the checkbox on link actions - don't output aria warnings when using `aria-labelledby` - require `md-input-container` when using links in checkbox labels Fixes #11134. BREAKING CHANGE: If you've created a custom solution to style links within `md-checkbox` labels, then you may need to remove or change that code now. This is because we automatically detect `<a>` tags in these labels and re-render them in an accessible way.
a8b31bd
to
16fdc61
Compare
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
- Breaking Change
a11y
This issue is related to accessibility
cla: yes
PR author has signed Google's CLA: https://opensource.google.com/docs/cla/
g3: reported
The issue was reported by an internal or external product team.
P3: important
Important issues that really should be fixed when possible.
pr: lgtm
This PR has been approved by the reviewer
pr: merge ready
This PR is ready for a caretaker to review
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Checklist
Please check that your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
JAWS and Voiceover can't get to links in
md-checkbox
labels.Issue Number:
Fixes #11134
What is the new behavior?
md-checkbox
labels.md-input-container
is required for using links in checkbox labels due to layout considerations.Does this PR introduce a breaking change?
Other information