-
Notifications
You must be signed in to change notification settings - Fork 332
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
Prevent duplicate checkbox aria-describedby #1265
Prevent duplicate checkbox aria-describedby #1265
Conversation
bbfe950
to
fe527c1
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 good to me, thanks @colinrotherham 🙌 Just left one comment. We'll also need a second reviewer from our team to take a look.
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.
Thanks for this contribution.
Only one minor thing to help improve readability but apart from that it looks really good.
👍
Thanks for the feedback. I've been in Nunjucks land a while now, will make it simpler! |
fe527c1
to
60d6742
Compare
60d6742
to
7c818bf
Compare
@aliuk2012 I needed to support this new hybrid case (previously untested) so I've pushed a slightly revised version up: https://govuk-frontend-review-pr-1265.herokuapp.com/components/checkboxes/with-error-message-and-hints-on-items/preview As mentioned on the diffs, it's to cater for:
@hannalaakso If you'd still prefer those Nunjucks if/else simplifying further let me know. |
The fieldset has the `aria-describedby` so we don’t need it on the input
7c818bf
to
c5e923c
Compare
Rebased with |
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.
Thanks Colin!
I've spent a bit of time in the checkbox component recently (passing
describedBy
around) so I've fixed #1248 as it'll benefit our work as well.