There are some breaking changes you'll need to be aware of when upgrading to v5. These are mostly related to us upgrading our dependency on nhsuk-frontend to v9 which also includes breaking changes.
The Breadcrumbs
component no longer contains its own <Container>
container component.
Instead, Breadcrumbs
should be moved inside the existing <Container>
or <div class="nhsuk-width-container">
for your overall page, but before the <main>
tag.
This means that instead of this:
<Breadcrumb>
<Breadcrumb.Item href="#">Home</Breadcrumb.Item>
</Breadcrumb>
<Container>
<main class="nhsuk-main-wrapper" id="maincontent" role="main">
...
</main>
</Container>
You should have this:
<Container>
<Breadcrumb>
<Breadcrumb.Item href="#">Home</Breadcrumb.Item>
</Breadcrumb>
<main class="nhsuk-main-wrapper" id="maincontent" role="main">
...
</main>
</Container>
Although no changes were needed in this library, nhsuk-frontend library has a breaking change for consumers of the BackLink
component. See the Changelog
A new Warning Button variant has been added to the Button
component. To use this, set the warning
prop on Button
, e.g.
<Button warning>Delete</Button>
- Add aria-hidden to responsive table cells that show on small screens, to avoid screenreaders calling out the labels/column headings twice.
- Ensure that headers are aligned to expected standards (if there are fewer than 4 links on the header, the content is left-aligned).