Skip to content

Commit

Permalink
Update changelog to reflect left aligned navigation in header component
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobertlloyd committed Feb 21, 2025
1 parent 4c8b7c1 commit 0e61a66
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,19 @@
<nav class="nhsuk-navigation" aria-label="Menu">
```

- Update header navigation to align items to the left. ([PR 1138](https://github.com/nhsuk/nhsuk-frontend/pull/1138)). To restore the previous behaviour, where navigation items appeared evenly spaced out, use the `.nhsuk-header__navigation-list--justified` modifier class:

```html
<ul class="nhsuk-header__navigation-list nhsuk-header__navigation-list--justified">
<li class="nhsuk-header__navigation-item">
<a class="nhsuk-header__navigation-link" href="#">Health A-Z</a>
</li>
...
</ul>
```

If you are using the `.nhsuk-header__navigation-list--left-aligned` modifier class, this can now be removed.

:boom: **Breaking changes**

- Remove the boolean `showNav`, `showSearch` and `transactional` options from the header component. Respective parts of the header are now shown if values for `primaryLinks`, `search` or `transactionalService` options are provided. Additionally, the `searchAction` option is renamed `search.action` and the `searchInputName` option is renamed `search.name`. Finally, the label, button and placeholder text for the search input can be updated using the new `search.visuallyHiddenLabel`, `search.visuallyHiddenButton` and `search.placeholder` options. ([PR 996](https://github.com/nhsuk/nhsuk-frontend/pull/996))
Expand Down

0 comments on commit 0e61a66

Please sign in to comment.