Skip to content
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

feat(material/checkbox): Avoid nested divs in labels by changing to span instead. #20990

Merged

Conversation

jesscxu
Copy link
Contributor

@jesscxu jesscxu commented Nov 9, 2020

What:
Change <div> to <span>

Why:
<div> elements should not be nested inside <label> elements because <label> only allows phrasing content

@google-cla google-cla bot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Nov 9, 2020
@jesscxu jesscxu force-pushed the update-span-to-div-nested-labels-checkbox branch from 5b9adfa to 716ba7e Compare November 10, 2020 20:50
@mmalerba mmalerba added action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release labels Nov 12, 2020
Copy link
Contributor

@mmalerba mmalerba left a comment

Choose a reason for hiding this comment

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

LGTM

@mmalerba mmalerba merged commit 94bd0d4 into angular:master Nov 13, 2020
mmalerba pushed a commit that referenced this pull request Nov 13, 2020
…pan instead. (#20990)

Co-authored-by: Jessica Xu <[email protected]>
(cherry picked from commit 94bd0d4)
crisbeto added a commit to crisbeto/material2 that referenced this pull request Dec 5, 2020
We made similar adjustments to other components that had `div`
elements inside the control `label` (angular#20990, angular#20986), but we never
fixed it for the slide toggle.
@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 14, 2020
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 cla: yes PR author has agreed to Google's Contributor License Agreement target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants