Skip to content

Commit 32f527b

Browse files
committed
Make title text match heading
We generally aim to keep page titles in sync with the main heading on the page - this makes it easier for screen reader users to understand what page they're on as they navigate through a form.
1 parent 09989fd commit 32f527b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

config/locales/cy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ cy:
344344
archived:
345345
heading: Sorry, this service is no longer available
346346
service_unavailable: "“%{form_name}” has been archived and is no longer available."
347-
title: Form archived
347+
title: Sorry, this service is no longer available
348348
check_your_answers:
349349
agree_and_submit: Cytuno a chyflwyno
350350
declaration: Datganiad

config/locales/en.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ en:
344344
archived:
345345
heading: Sorry, this service is no longer available
346346
service_unavailable: "“%{form_name}” has been archived and is no longer available."
347-
title: Form archived
347+
title: Sorry, this service is no longer available
348348
check_your_answers:
349349
agree_and_submit: Agree and submit
350350
declaration: Declaration

spec/views/forms/archived/show.html.erb_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
end
1313

1414
it "has the correct title" do
15-
expect(view.content_for(:title)).to eq "Form archived - Archived form"
15+
expect(view.content_for(:title)).to eq "Sorry, this service is no longer available - Archived form"
1616
end
1717

1818
it "has the correct heading" do

0 commit comments

Comments
 (0)