Skip to content

Commit

Permalink
update readme and changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
roshaanbajwa committed Jun 27, 2024
1 parent 5136836 commit 047f48f
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
:new: **New features**

- Make nhsuk-page-width a default so that services can override it ([PR 971](https://github.com/nhsuk/nhsuk-frontend/pull/971))
- Make footer copyright statement configurable via Nunjucks parameters ([PR 975](https://github.com/nhsuk/nhsuk-frontend/pull/975))

## 8.2.0 - 12 June 2024

Expand Down
70 changes: 70 additions & 0 deletions packages/components/footer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ Your copyright statement must reflect the ownership of your website or service.
{% from 'components/footer/macro.njk' import footer %}
{{ footer({
"copyright": "© Crown copyright",
"links": [
{
"URL": "#",
Expand Down Expand Up @@ -266,6 +267,75 @@ Your copyright statement must reflect the ownership of your website or service.
]
})}}
```
### Footer (custom copyright statement)

[Preview the footer (custom copyright statement) component](https://nhsuk.github.io/nhsuk-frontend/components/footer/custom-copyright.html)

#### HTML markup

```html
<footer role="contentinfo">
<div class="nhsuk-footer-container">
<div class="nhsuk-width-container">
<h2 class="nhsuk-u-visually-hidden">Support links</h2>
<div class="nhsuk-footer">
<ul class="nhsuk-footer__list">
<li class="nhsuk-footer__list-item nhsuk-footer-default__list-item">
<a class="nhsuk-footer__list-item-link" href="#">Accessibility statement</a>
</li>
<li class="nhsuk-footer__list-item nhsuk-footer-default__list-item">
<a class="nhsuk-footer__list-item-link" href="#">Contact us</a>
</li>
<li class="nhsuk-footer__list-item nhsuk-footer-default__list-item">
<a class="nhsuk-footer__list-item-link" href="#">Cookies</a>
</li>
<li class="nhsuk-footer__list-item nhsuk-footer-default__list-item">
<a class="nhsuk-footer__list-item-link" href="#">Privacy policy</a>
</li>
<li class="nhsuk-footer__list-item nhsuk-footer-default__list-item">
<a class="nhsuk-footer__list-item-link" href="#">Terms and conditions</a>
</li>
</ul>
<div>
<p class="nhsuk-footer__copyright">&copy; East London NHS Foundation Trust</p>
</div>
</div>
</div>
</div>
</footer>
```

#### Nunjucks macro

```
{% from 'components/footer/macro.njk' import footer %}
{{ footer({
"copyright": "© East London NHS Foundation Trust",
"links": [
{
"URL": "#",
"label": "Accessibility statement"
},
{
"URL": "#",
"label": "Contact us"
},
{
"URL": "#",
"label": "Cookies"
},
{
"URL": "#",
"label": "Privacy policy"
},
{
"URL": "#",
"label": "Terms and conditions"
}
]
})}}
```

### Nunjucks arguments

Expand Down

0 comments on commit 047f48f

Please sign in to comment.