diff --git a/CHANGELOG.md b/CHANGELOG.md index 5661ccf30d..a9ed17fd46 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,35 @@ 💥 Breaking changes: +- Make radios and checkboxes components easier to link to from the error summary component + + The first input in the radios and checkboxes will have an `id` and `name` attribute that match, allowing for easier generation of error summary links. + + You should check that clicking an error link for a radios or checkboxes results in the first input being focused. + + To migrate you can update your error summary so it links to the first element. + + If you cannot change your error summary, you could change your component to set the `item.id` option for the first input, for example: + + ```javascript + {{ govukRadios({ + idPrefix: "question", + items: [ + { + id: "question-1", + value: "yes", + text: "Yes" + }, + { + value: "no", + text: "No" + } + ] + }) }} + ``` + + ([PR #1426](https://github.com/alphagov/govuk-frontend/pull/1426)) + - Remove `govuk-focusable`, `govuk-focusable-fill` mixins, introduce `govuk-focus-text` mixin. To migrate: