Skip to content

Commit 88be0f2

Browse files
committed
CCM-8859 Extract aria copy to content file
1 parent 0ffe393 commit 88be0f2

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

frontend/src/components/molecules/Header/Header.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export function NHSNotifyHeader({ dataTestId }: HeaderType) {
2222
<Link
2323
className='nhsuk-header__link nhsuk-header__link--service'
2424
href='/create-and-submit-templates'
25-
aria-label='NHS Notify templates'
25+
aria-label={content.components.header.links.logoLink.ariaLabel}
2626
>
2727
<svg
2828
className='nhsuk-logo'
@@ -33,7 +33,9 @@ export function NHSNotifyHeader({ dataTestId }: HeaderType) {
3333
width='100'
3434
data-testid='page-header-logo'
3535
>
36-
<title>NHS logo</title>
36+
<title>
37+
{content.components.header.links.logoLink.logoTitle}
38+
</title>
3739
<path
3840
className='nhsuk-logo__background'
3941
fill='#005eb8'

frontend/src/content/content.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ const header = {
1717
text: 'Sign out',
1818
href: '/auth/signout',
1919
},
20+
logoLink: {
21+
ariaLabel: 'NHS Notify templates',
22+
logoTitle: 'NHS logo',
23+
},
2024
},
2125
};
2226

0 commit comments

Comments
 (0)