Skip to content

Commit

Permalink
Add CHANGELOG entry
Browse files Browse the repository at this point in the history
  • Loading branch information
NickColley committed Jun 5, 2019
1 parent c0f2fab commit 8407a10
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8407a10

Please sign in to comment.