Skip to content
This repository has been archived by the owner on Aug 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request #4590 from bbc/fix-comma-CurrentLink
Browse files Browse the repository at this point in the history
fix a11y comma bug in psammead-navigation
  • Loading branch information
DarioR01 authored Nov 2, 2021
2 parents f378a7f + 10d52ae commit 3b5849e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 10 deletions.
Empty file added .yarn/versions/bac76bec.yml
Empty file.
1 change: 1 addition & 0 deletions packages/components/psammead-navigation/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<!-- prettier-ignore -->
| Version | Description |
|---------|-------------|
| 9.2.13 | [PR#4590](https://github.com/bbc/psammead/pull/4590) Fix talkback comma bug |
| 9.2.12 | [PR#4574](https://github.com/bbc/psammead/pull/4574) Bumps psammead-styles |
| 9.2.11 | [PR#4568](https://github.com/bbc/psammead/pull/4568) Bump dependencies |
| 9.2.10 | [PR#4565](https://github.com/bbc/psammead/pull/4565) Bump from psammead-styles |
Expand Down
2 changes: 1 addition & 1 deletion packages/components/psammead-navigation/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bbc/psammead-navigation",
"version": "9.2.12",
"version": "9.2.13",
"description": "A navigation bar to use on index pages",
"main": "dist/index.js",
"module": "esm/index.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,7 @@ exports[`Navigation should render correctly 1`] = `
<span
class="emotion-12 emotion-13"
>
Current page
,
Current page,
</span>
Akụkọ
</span>
Expand Down Expand Up @@ -500,8 +499,7 @@ exports[`Navigation should render correctly when ampOpenClass prop is provided 1
<span
class="emotion-12 emotion-13"
>
Current page
,
Current page,
</span>
Akụkọ
</span>
Expand Down Expand Up @@ -773,8 +771,7 @@ exports[`Navigation should render correctly when isOpen is true 1`] = `
<span
class="emotion-12 emotion-13"
>
Current page
,
Current page,
</span>
Akụkọ
</span>
Expand Down Expand Up @@ -1090,8 +1087,7 @@ exports[`Scrollable Navigation should render correctly 1`] = `
<span
class="emotion-14 emotion-15"
>
Current page
,
Current page,
</span>
Akụkọ
</span>
Expand Down
2 changes: 1 addition & 1 deletion packages/components/psammead-navigation/src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ const CurrentLink = ({
script={script}
brandHighlightColour={brandHighlightColour}
>
<VisuallyHiddenText>{currentPageText}, </VisuallyHiddenText>
<VisuallyHiddenText>{`${currentPageText}, `}</VisuallyHiddenText>
{link}
</StyledSpan>
</>
Expand Down

0 comments on commit 3b5849e

Please sign in to comment.