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 #4603 from bbc/conditional-aria-labelledby
Browse files Browse the repository at this point in the history
Conditional aria-labelledby for StoryPromo - IndexAlsos
  • Loading branch information
amoore108 authored Nov 25, 2021
2 parents 59bce2a + 26ed9e6 commit 77015fc
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 8 deletions.
1 change: 1 addition & 0 deletions packages/components/psammead-bulletin/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<!-- prettier-ignore -->
| Version | Description |
|---------|-------------|
| 5.0.51 | [PR#4603](https://github.com/bbc/psammead/pull/4603) Bumps dependencies |
| 5.0.50 | [PR#4602](https://github.com/bbc/psammead/pull/4602) Bumps dependencies |
| 5.0.49 | [PR#4597](https://github.com/bbc/psammead/pull/4597) Bumps dependencies |
| 5.0.48 | [PR#4588](https://github.com/bbc/psammead/pull/4588) Bumps dependencies |
Expand Down
4 changes: 2 additions & 2 deletions packages/components/psammead-bulletin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bbc/psammead-bulletin",
"version": "5.0.50",
"version": "5.0.51",
"main": "dist/index.js",
"module": "esm/index.js",
"sideEffects": false,
Expand All @@ -22,7 +22,7 @@
"@bbc/gel-foundations": "7.0.0",
"@bbc/psammead-assets": "3.1.9",
"@bbc/psammead-live-label": "2.0.32",
"@bbc/psammead-story-promo": "8.0.33",
"@bbc/psammead-story-promo": "8.0.34",
"@bbc/psammead-styles": "8.0.1",
"@bbc/psammead-visually-hidden-text": "2.0.7"
},
Expand Down
1 change: 1 addition & 0 deletions packages/components/psammead-story-promo/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<!-- prettier-ignore -->
| Version | Description |
| ------- | ----------- |
| 8.0.34 | [PR#4603](https://github.com/bbc/psammead/pull/4603) Conditionally add aria-labelledby attribute |
| 8.0.33 | [PR#4602](https://github.com/bbc/psammead/pull/4602) Use 'children' value instead of 'URL' for aria-labelledby |
| 8.0.32 | [PR#4588](https://github.com/bbc/psammead/pull/4588) Fix TalkBack reading nested spans incorrectly |
| 8.0.31 | [PR#4578](https://github.com/bbc/psammead/pull/4578) Fix Firefox underline rendering bug |
Expand Down
2 changes: 1 addition & 1 deletion packages/components/psammead-story-promo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bbc/psammead-story-promo",
"version": "8.0.33",
"version": "8.0.34",
"main": "dist/index.js",
"module": "esm/index.js",
"sideEffects": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ exports[`Index Alsos should render multiple correctly 1`] = `
role="listitem"
>
<a
aria-labelledby="IndexAlsosLink-hausalabarai42837051"
class="emotion-8 emotion-9"
href="/hausa/labarai-42837051"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ const IndexAlsosLink = ({
script={script}
service={service}
// Line 63 and id={`IndexAlsosLink-${sanitisedUrl}`} in line 68 are temporary fix for the a11y nested span's bug experienced in TalkBack, refer to the following issue: https://github.com/bbc/simorgh/issues/9652
aria-labelledby={`IndexAlsosLink-${sanitisedUrl}`}
{...(mediaIndicator && {
'aria-labelledby': `IndexAlsosLink-${sanitisedUrl}`,
})}
>
{mediaIndicator ? (
<>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1568,7 +1568,6 @@ exports[`StoryPromo - Top Story should render with multiple Index Alsos correctl
role="listitem"
>
<a
aria-labelledby="IndexAlsosLink-hausalabarai42837051"
class="emotion-22 emotion-23"
href="/hausa/labarai-42837051"
>
Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1693,7 +1693,7 @@ __metadata:
"@bbc/gel-foundations": 7.0.0
"@bbc/psammead-assets": 3.1.9
"@bbc/psammead-live-label": 2.0.32
"@bbc/psammead-story-promo": 8.0.33
"@bbc/psammead-story-promo": 8.0.34
"@bbc/psammead-styles": 8.0.1
"@bbc/psammead-visually-hidden-text": 2.0.7
"@emotion/styled": ^11.3.0
Expand Down Expand Up @@ -2092,7 +2092,7 @@ __metadata:
languageName: unknown
linkType: soft

"@bbc/[email protected].33, @bbc/psammead-story-promo@workspace:packages/components/psammead-story-promo":
"@bbc/[email protected].34, @bbc/psammead-story-promo@workspace:packages/components/psammead-story-promo":
version: 0.0.0-use.local
resolution: "@bbc/psammead-story-promo@workspace:packages/components/psammead-story-promo"
dependencies:
Expand Down

0 comments on commit 77015fc

Please sign in to comment.