Skip to content

Commit

Permalink
Merge branch 'main' into update-footer-copyright-statement
Browse files Browse the repository at this point in the history
  • Loading branch information
roshaanbajwa authored Jun 19, 2024
2 parents a4d6563 + f2b2718 commit de81b7b
Show file tree
Hide file tree
Showing 39 changed files with 2,634 additions and 753 deletions.
29 changes: 23 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
# NHS.UK frontend Changelog

## 8.2.0 - 12 June 2024

:recycle: **Changes**

- Align label bottom margins with fieldset legend bottom margins ([PR 946](https://github.com/nhsuk/nhsuk-frontend/pull/946))

:wrench: **Fixes**

- Change example link to hash ([PR 962](https://github.com/nhsuk/nhsuk-frontend/pull/962))
- Adjust nested list spacing ([PR 961](https://github.com/nhsuk/nhsuk-frontend/pull/961))
- Fix header navigation item alignment ([PR 054](https://github.com/nhsuk/nhsuk-frontend/pull/954))
- Fix bug with inset text component requiring uppercase `html` argument ([Issue 950](https://github.com/nhsuk/nhsuk-frontend/issues/950))
- Remove unused CSS from icon card component ([PR 943](https://github.com/nhsuk/nhsuk-frontend/pull/943))
- Remove unused CSS from breadcrumbs component ([PR 943](https://github.com/nhsuk/nhsuk-frontend/pull/943))
- Add `aria-hidden` to responsive labels in responsive tables, to avoid screen readers repeating them ([PR 942](https://github.com/nhsuk/nhsuk-frontend/pull/942))
- Add `opacity: 1` to header search placeholder, to increase colour contrast on Firefox ([PR 939](https://github.com/nhsuk/nhsuk-frontend/pull/939))

## 8.1.1 - 14 March 2024

:wrench: **Fixes**
Expand Down Expand Up @@ -120,15 +137,15 @@ We removed the need to add the last breadcrumb outside of the 'Items' list, now
{{ breadcrumb({
items: [
{
href: "/level-one",
href: "#",
text: "Level one"
},
{
href: "/level-one/level-two",
href: "#",
text: "Level two"
}
],
href: "/level-one/level-two/level-three",
href: "#",
text: "Level three"
}) }}
```
Expand All @@ -139,15 +156,15 @@ You will now only need this:
{{ breadcrumb({
items: [
{
href: "/level-one",
href: "#",
text: "Level one",
},
{
href: "/level-one/level-two",
href: "#",
text: "Level two"
},
{
href: "/level-one/level-two/level-three",
href: "#",
text: "Level three"
}
]
Expand Down
16 changes: 8 additions & 8 deletions app/components/all.njk
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,15 @@
items: [
{
text: "Home",
href: "https://www.nhs.uk/"
href: "#"
},
{
text: "Health A-Z",
href: "https://www.nhs.uk/conditions"
href: "#"
},
{
text: "Abscess",
href: "https://www.nhs.uk/conditions/abscess/"
href: "#"
}
]
}) }}
Expand All @@ -89,26 +89,26 @@
{{ contentsList({
items: [
{
href: "https://www.nhs.uk/conditions/age-related-macular-degeneration-amd/",
href: "#",
text: "What is AMD?",
current: "true"
},
{
href: "https://www.nhs.uk/conditions/age-related-macular-degeneration-amd/symptoms/",
href: "#",
text: "Symptoms"
},
{
href: "https://www.nhs.uk/conditions/age-related-macular-degeneration-amd/getting-diagnosed/",
href: "#",
text: "Getting diagnosed"
}
,
{
href: "https://www.nhs.uk/conditions/age-related-macular-degeneration-amd/treatment/",
href: "#",
text: "Treatments"
}
,
{
href: "https://www.nhs.uk/conditions/age-related-macular-degeneration-amd/living-with-amd/",
href: "#",
text: "Living with AMD"
}
]
Expand Down
8 changes: 4 additions & 4 deletions app/components/breadcrumb/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@
{{ breadcrumb({
items: [
{
href: "/level-one",
href: "#",
text: "Level one",
attributes: {lang: "en"}
},
{
href: "/level-one/level-two",
href: "#",
text: "Level two"
},
{
href: "/level-one/level-two/level-three",
href: "#",
text: "Level three",
attributes: {lang: "en"}
}
],
href: "/level-one/level-two/level-three/level-four",
href: "#",
text: "Level four",
classes: "example-class-one example-class-two",
attributes: {lang: "en"}
Expand Down
2 changes: 1 addition & 1 deletion app/components/button/link.njk
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<div class="nhsuk-grid-column-two-thirds">
{{ button({
"text": "Link button",
"href": "/nhsuk-frontend/"
"href": "/"
}) }}
</div>
</div>
Expand Down
10 changes: 5 additions & 5 deletions app/components/contents-list/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,26 @@
{{ contentsList({
items: [
{
href: "https://www.nhs.uk/conditions/age-related-macular-degeneration-amd/",
href: "#",
text: "What is AMD?",
current: "true"
},
{
href: "https://www.nhs.uk/conditions/age-related-macular-degeneration-amd/symptoms/",
href: "#",
text: "Symptoms"
},
{
href: "https://www.nhs.uk/conditions/age-related-macular-degeneration-amd/getting-diagnosed/",
href: "#",
text: "Getting diagnosed"
}
,
{
href: "https://www.nhs.uk/conditions/age-related-macular-degeneration-amd/treatment/",
href: "#",
text: "Treatments"
}
,
{
href: "https://www.nhs.uk/conditions/age-related-macular-degeneration-amd/living-with-amd/",
href: "#",
text: "Living with AMD"
}
]
Expand Down
2 changes: 1 addition & 1 deletion app/components/inset-text/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<div class="nhsuk-grid-row">
<div class="nhsuk-grid-column-two-thirds">
{{ insetText({
"HTML": "<p>You can report any suspected side effect to the <a href=\"https://yellowcard.mhra.gov.uk/\" title=\"External website\">UK safety scheme</a>.</p>"
"html": "<p>You can report any suspected side effect to the <a href=\"https://yellowcard.mhra.gov.uk/\" title=\"External website\">UK safety scheme</a>.</p>"
}) }}
</div>
</div>
Expand Down
7 changes: 6 additions & 1 deletion app/pages/examples.njk
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,11 @@
<li><a href="../components/warning-callout/index.html">Warning callout</a></li>
<li><a href="../components/warning-callout/custom-heading.html">Warning callout with custom heading</a></li>
</ul>

<h2>Styles</h2>
<ul class="nhsuk-list">
<li><a href="../styles/lists.html">Lists</a></li>
</ul>
{% endblock %}

{% block footer %}
Expand Down Expand Up @@ -156,4 +161,4 @@
]
})}}

{% endblock %}
{% endblock %}
101 changes: 101 additions & 0 deletions app/styles/lists.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
{% set title = 'Lists' %}

{% extends 'page.njk' %}

{% block header %}
{{ super() }}
{% endblock %}

{% block breadcrumb %}
{{ breadcrumb({
items: [
{
href: "../../",
text: "NHS.UK frontend"
},
{
href: "../pages/examples.html",
text: "Examples"
}
]
}) }}
{% endblock %}

{% block content %}

<h1 class="nhsuk-heading-xl">Lists</h1>

<h2 class="nhsuk-heading-m">Plain list</h2>

<ul class="nhsuk-list">
<li><a href="#">Money, work and benefits</a></li>
<li><a href="#">Care after a hospital stay</a></li>
<li><a href="#">Support and benefits for carers</a></li>
</ul>

<h2 class="nhsuk-heading-m">Bulleted list</h2>

<ul class="nhsuk-list nhsuk-list--bullet">
<li>tiredness and lack of energy</li>
<li>shortness of breath</li>
<li>noticeable heartbeats (heart palpitations)</li>
<li>pale skin</li>
</ul>

<h2 class="nhsuk-heading-m">Numbered list</h2>

<ol class="nhsuk-list nhsuk-list--number">
<li>Dissolve half a teaspoon of salt in a glass of warm water.</li>
<li>Gargle with the solution then spit it out – don't swallow it.</li>
<li>Repeat as often as you like.</li>
</ol>

<h2 class="nhsuk-heading-m">Bulleted list with nested bulleted list</h2>

<ul class="nhsuk-list nhsuk-list--bullet">
<li>Accessibility</li>
<li>Policies
<ul class="nhsuk-list nhsuk-list--bullet">
<li>Cookies</li>
<li>Terms and conditions</li>
<li>Privacy policy</li>
</ul>
</li>
<li>Sitemap</li>
</ul>

<h2 class="nhsuk-heading-m">Numbered list with nested numbered list</h2>

<ul class="nhsuk-list nhsuk-list--number">
<li>Accessibility</li>
<li>Policies
<ul class="nhsuk-list nhsuk-list--number">
<li>Cookies</li>
<li>Terms and conditions</li>
<li>Privacy policy</li>
</ul>
</li>
<li>Sitemap</li>
</ul>

<h2 class="nhsuk-heading-m">Bulleted list with 2 nested lists</h2>

<ul class="nhsuk-list nhsuk-list--bullet">
<li>Service standard</li>
<li>Design system
<ul class="nhsuk-list nhsuk-list--bullet">
<li>Styles</li>
<li>Components
<ul class="nhsuk-list nhsuk-list--bullet">
<li>Buttons</li>
<li>Checkboxes</li>
</ul>
</li>
<li>Patterns</li>
</ul>
</li>
<li>Content guide</li>
</ul>


{% endblock %}
39 changes: 39 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
trigger:
branches:
include:
- review-*
paths:
exclude:
- CHANGELOG.md
- README.md
- CODE_OF_CONDUCT.md
- CONTRIBUTING.md
pr: none

pool:
vmImage: 'ubuntu-latest'

steps:
- script: npm ci
displayName: 'Install'

- script: npm run build
displayName: 'Build'

- script: npm run lint
displayName: 'Lint'

- script: npm run test
displayName: 'Test'

- script: npm run backstop:ci
displayName: 'Backstop'

- task: ArchiveFiles@2
inputs:
rootFolderOrFile: '$(System.DefaultWorkingDirectory)'
includeRootFolder: false
displayName: 'Create file archive to publish'

- task: PublishBuildArtifacts@1
displayName: 'Publish files to Azure Pipelines'
Loading

0 comments on commit de81b7b

Please sign in to comment.