-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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/radio): Avoid nested divs in labels by changing to span instead. #20986
feat(material/radio): Avoid nested divs in labels by changing to span instead. #20986
Conversation
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, but the commit message check is failing. Multiple scopes aren't allowed so you'll have to either split it two commits or pick only one of the scopes.
Splitting into two commits would be preferable. Also, do none of these elements need to be explicitly set back to |
Will split this into two! I also imagine |
4d3beac
to
a9a83c2
Compare
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.
Looks like the check is still failing. The commit also has to include which package it's in (e.g. material/button-toggle
).
I think the lint error is referring to another commit message. |
Hmm true. In that case you have to rebase from master to get the lint check to pass. |
Lint error can potentially be ignored: #20914 (comment) |
a9a83c2
to
266f819
Compare
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
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.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
What:
Change
<div>
to<span>
Why:
<div>
elements should not be nested inside<label>
elements because<label>
only allows phrasing content