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 #4589 from bbc/Brand-comma-bug
Browse files Browse the repository at this point in the history
fix comma bug in psammead-brand
  • Loading branch information
DarioR01 authored Nov 2, 2021
2 parents 533cbc4 + 4d9ee72 commit f378a7f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
1 change: 1 addition & 0 deletions packages/components/psammead-brand/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<!-- prettier-ignore -->
| Version | Description |
| ------- | ----------- |
| 7.3.13 | [PR#4589](https://github.com/bbc/psammead/pull/4589) Fix comma bug in TalkBack |
| 7.3.12 | [PR#4574](https://github.com/bbc/psammead/pull/4574) Bumps psammead-styles |
| 7.3.11 | [PR#4568](https://github.com/bbc/psammead/pull/4568) Bump dependencies |
| 7.3.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-brand/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bbc/psammead-brand",
"version": "7.3.12",
"version": "7.3.13",
"main": "dist/index.js",
"module": "esm/index.js",
"sideEffects": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,11 @@ exports[`Brand should render correctly with link not provided 1`] = `
<span
lang="en-GB"
>
Default Brand Name
Default Brand Name,
</span>
<span>
Service
</span>
,
Service
</span>
</div>
</div>
Expand Down Expand Up @@ -285,10 +286,11 @@ exports[`Brand should render correctly with link provided 1`] = `
<span
lang="en-GB"
>
Default Brand Name
Default Brand Name,
</span>
<span>
Service
</span>
,
Service
</span>
</a>
</div>
Expand Down
3 changes: 2 additions & 1 deletion packages/components/psammead-brand/src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ const LocalisedBrandName = ({ product, serviceLocalisedName }) =>
serviceLocalisedName ? (
// eslint-disable-next-line jsx-a11y/aria-role
<VisuallyHiddenText role="text">
<span lang="en-GB">{product}</span>, {serviceLocalisedName}
<span lang="en-GB">{`${product}, `}</span>
<span>{serviceLocalisedName}</span>
</VisuallyHiddenText>
) : (
<VisuallyHiddenText>{product}</VisuallyHiddenText>
Expand Down

0 comments on commit f378a7f

Please sign in to comment.