Skip to content

Commit 72fbadc

Browse files
committed
Use Callout for brand callouts
There's still some repeated content in the branding wording which might be able to be made reusable
1 parent 72515cb commit 72fbadc

7 files changed

Lines changed: 18 additions & 18 deletions

File tree

src/components/back-link/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ Use the `govuk-back-link--inverse` modifier class to show a white link on a dark
4747

4848
Make sure all users can see the back link – the background colour must have a contrast ratio of at least 4.5:1 with white to meet [WCAG 2.2 success criterion 1.4.3 Contrast (minimum), level AA](https://www.w3.org/WAI/WCAG22/Understanding/contrast-minimum.html).
4949

50-
{{ example({ group: "components", item: "back-link", example: "inverse", html: true, nunjucks: true, open: false }) }}
50+
{{ example({ group: "components", item: "back-link", example: "inverse", html: true, nunjucks: true, open: false }) }}

src/components/breadcrumbs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ Use the `govuk-breadcrumbs--inverse` modifier class to show white links and arro
4747

4848
Make sure all users can see the breadcrumbs – the background colour must have a contrast ratio of at least 4.5:1 with white to [meet WCAG 2.2 success criterion 1.4.3 Contrast (minimum), level AA](https://www.w3.org/WAI/WCAG22/Understanding/contrast-minimum.html).
4949

50-
{{ example({ group: "components", item: "breadcrumbs", example: "inverse", html: true, nunjucks: true, open: false }) }}
50+
{{ example({ group: "components", item: "breadcrumbs", example: "inverse", html: true, nunjucks: true, open: false }) }}

src/components/cookie-banner/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ layout: layout-pane.njk
88
---
99

1010
{% from "_example.njk" import example %}
11-
{% from "_brand-callout.njk" import brandCallout %}
11+
{% from "_callout.njk" import callout %}
1212

1313
Allow users to accept or reject cookies which are not essential to making your service work.
1414

@@ -21,9 +21,9 @@ Allow users to accept or reject cookies which are not essential to making your s
2121

2222
If you use the page template, you'll also get the Cookie banner without having to add it, as it's included by default. However, if you want to customise the default Cookie banner, read the [page template guidance about customising components](/styles/page-template/#changing-template-content).
2323

24-
{% call brandCallout({ text: "Brand", classes: "brand-tag-green" }) %}
24+
{% call callout({ tagText: "Brand", colour: "green" }) %}
2525

26-
<h2>Brand changes to the {{title}} component</h2>
26+
<h2 class="app-callout__heading">Brand changes to the {{title}} component</h2>
2727
<p class="govuk-body">From June 2025, the {{title}} component will change to support a wider refresh of the GOV.UK brand. </p>
2828

2929
<p class="govuk-body">The updated colour palette changes the Cookie banner component’s background colour to light blue, instead of grey.</p>
@@ -202,4 +202,4 @@ We decided to remove the visible focus indicator from the confirmation message f
202202
- it's the first element, at the very top of the page
203203
- it displays in place of the cookie message, which is the last thing the user interacted with
204204

205-
In this scenario, we assume that a visible focus indicator would be more likely to confuse users than to help them. However, we need more research to prove this.
205+
In this scenario, we assume that a visible focus indicator would be more likely to confuse users than to help them. However, we need more research to prove this.

src/components/footer/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ layout: layout-pane.njk
88
---
99

1010
{% from "_example.njk" import example %}
11-
{% from "_brand-callout.njk" import brandCallout %}
11+
{% from "_callout.njk" import callout %}
1212
{%- from "govuk/components/tag/macro.njk" import govukTag -%}
1313

1414
The GOV.UK footer provides copyright, licensing and other information about your service.
@@ -22,9 +22,9 @@ The GOV.UK footer provides copyright, licensing and other information about your
2222

2323
If you use the page template, you'll also get the footer without having to add it, as it's included by default. However, if you want to customise the default footer, read the [page template guidance about customising components](/styles/page-template/#changing-template-content).
2424

25-
{% call brandCallout({ text: "Brand", classes: "brand-tag-green" }) %}
25+
{% call callout({ tagText: "Brand", colour: "green" }) %}
2626

27-
<h2>Brand changes to the {{title}} component</h2><p class="govuk-body">From June 2025, the {{title}} component will change to support a wider refresh of the GOV.UK brand.</p>
27+
<h2 class="app-callout__heading">Brand changes to the {{title}} component</h2><p class="govuk-body">From June 2025, the {{title}} component will change to support a wider refresh of the GOV.UK brand.</p>
2828

2929
<p class="govuk-body">The updated {{title}} component:</p>
3030
<ul class="govuk-list">
@@ -92,4 +92,4 @@ Only add secondary GOV.UK navigation if you’re creating a GOV.UK service, and
9292

9393
### Footer with links and secondary navigation
9494

95-
{{ example({ group: "components", item: "footer", example: "full", html: true, nunjucks: true, open: false, size: "xl" }) }}
95+
{{ example({ group: "components", item: "footer", example: "full", html: true, nunjucks: true, open: false, size: "xl" }) }}

src/components/header/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ layout: layout-pane.njk
88
---
99

1010
{% from "_example.njk" import example %}
11-
{% from "_brand-callout.njk" import brandCallout %}
11+
{% from "_callout.njk" import callout %}
1212

1313
The GOV.UK header component tells users they’re using a service on GOV.UK and lets them use GOV.UK-wide tools. Also known as the GOV.UK masthead.
1414

@@ -21,9 +21,9 @@ The GOV.UK header component tells users they’re using a service on GOV.UK and
2121

2222
If you use the page template, you'll also get the GOV.UK header without having to add it, as it's included by default. However, if you want to customise the default GOV.UK header, read the [page template guidance about customising components](/styles/page-template/#changing-template-content).
2323

24-
{% call brandCallout({ text: "Brand", classes: "brand-tag-green" }) %}
24+
{% call callout({ tagText: "Brand", colour: "green" }) %}
2525

26-
<h2>Brand changes to the {{title}} component</h2>
26+
<h2 class="app-callout__heading">Brand changes to the {{title}} component</h2>
2727
<p class="govuk-body">From June 2025, the {{title}} component will change to support a wider refresh of the GOV.UK brand. </p>
2828

2929
<p class="govuk-body">The updated {{title}} component:</p>

src/components/service-navigation/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ layout: layout-pane.njk
88
---
99

1010
{% from "_example.njk" import example %}
11-
{% from "_brand-callout.njk" import brandCallout %}
11+
{% from "_callout.njk" import callout %}
1212
{% from "govuk/components/inset-text/macro.njk" import govukInsetText %}
1313

1414
Service navigation helps users understand that they’re using your service and lets them navigate around your service.
1515

16-
{% call brandCallout({ text: "Brand", classes: "brand-tag-green" }) %}
16+
{% call callout({ tagText: "Brand", colour: "green" }) %}
1717

18-
<h2>Brand changes to the {{title}} component</h2><p class="govuk-body">From June 2025, the {{title}} component will change to support a wider refresh of the GOV.UK brand.</p>
18+
<h2 class="app-callout__heading">Brand changes to the {{title}} component</h2><p class="govuk-body">From June 2025, the {{title}} component will change to support a wider refresh of the GOV.UK brand.</p>
1919

2020
<p class="govuk-body">The updated {{title}} component:</p>
2121
<ul class="govuk-list">

src/styles/colour/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ order: 12
1010
---
1111

1212
{% from "govuk/components/inset-text/macro.njk" import govukInsetText %}
13-
{% from "_brand-callout.njk" import brandCallout %}
13+
{% from "_callout.njk" import callout %}
1414

1515
Always use the GOV.UK colour palette.
1616

17-
{% call brandCallout({ text: "Brand", classes: "brand-tag-green" }) %}
17+
{% call callout({ tagText: "Brand", colour: "green" }) %}
1818

1919
<h2>Brand changes to {{title}}</h2>
2020
<p class="govuk-body">From June 2025, colours in some components will change to support a wider refresh of the GOV.UK brand. </p>

0 commit comments

Comments
 (0)