Skip to content

docs(cdk/listbox): fix a11y of example #26014

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

Merged
merged 1 commit into from
Nov 18, 2022
Merged

Conversation

Totati
Copy link
Contributor

@Totati Totati commented Nov 18, 2022

Fixes #26003

@Totati Totati requested a review from andrewseguin as a code owner November 18, 2022 07:55
@angular-robot angular-robot bot added the area: docs Related to the documentation label Nov 18, 2022
@@ -1,7 +1,9 @@
<form>
<p>
<input type="checkbox" [formControl]="canDrinkCtrl">&nbsp;
<label>I am 21 or older</label>
<label>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the correct fix would be to set a for attribute on the label.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I saw both usages in the repo, but sure. I'm gonna chang it for id="can-drink" as in the checkbox-demo.html.

Copy link
Member

@crisbeto crisbeto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@crisbeto crisbeto added action: merge The PR is ready for merge by the caretaker merge safe target: patch This PR is targeted for the next patch release labels Nov 18, 2022
@crisbeto crisbeto merged commit c9b1b42 into angular:main Nov 18, 2022
crisbeto pushed a commit that referenced this pull request Nov 18, 2022
@Totati Totati deleted the Totati/issue26003 branch November 18, 2022 11:38
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Dec 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker area: docs Related to the documentation target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

docs-bug(cdk-listbox): Listbox with disabled options demo accessibility
2 participants