Skip to content

Commit

Permalink
Merge pull request #9714 from bbc/a11y-bug-fix
Browse files Browse the repository at this point in the history
Refactor utility function and add contentType ID
  • Loading branch information
nicola-d-bbc authored Dec 1, 2021
2 parents 21cc9b8 + df0e8aa commit 5ffcf62
Show file tree
Hide file tree
Showing 8 changed files with 163 additions and 87 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -880,12 +880,12 @@ exports[`FrontPageStoryRows Container - snapshots LeadingRow - rtl 1`] = `
class="emotion-46 emotion-47"
>
<a
aria-labelledby="promo-link-unlabelledw13xttn1limit4"
aria-labelledby="promo-link-unlabelledw13xttn1limit4Video"
class="emotion-48 emotion-49"
href="https://www.bbc.com/urdu/bbc_urdu_tv/tv_programmes/w13xttn1?limit=4"
>
<span
id="promo-link-unlabelledw13xttn1limit4"
id="promo-link-unlabelledw13xttn1limit4Video"
>
سیربین ٹی وی پروگرام آن ڈیمانڈ
</span>
Expand Down Expand Up @@ -1550,12 +1550,12 @@ exports[`FrontPageStoryRows Container - snapshots LeadingRow 1`] = `
class="emotion-7 emotion-8"
>
<a
aria-labelledby="promo-link-unlabelledsport44416820"
aria-labelledby="promo-link-unlabelledsport44416820Text"
class="emotion-9 emotion-10"
href="https://www.bbc.com/pidgin/sport-44416820"
>
<span
id="promo-link-unlabelledsport44416820"
id="promo-link-unlabelledsport44416820Text"
>
Take dis predictor choose who go reach World Cup final
</span>
Expand Down Expand Up @@ -1663,12 +1663,12 @@ exports[`FrontPageStoryRows Container - snapshots LeadingRow 1`] = `
class="emotion-42 emotion-8"
>
<a
aria-labelledby="promo-link-unlabelledpidgin"
aria-labelledby="promo-link-unlabelledpidginAudio"
class="emotion-9 emotion-10"
href="http://www.bbc.com/pidgin"
>
<span
id="promo-link-unlabelledpidgin"
id="promo-link-unlabelledpidginAudio"
>
Audio promo
</span>
Expand Down Expand Up @@ -2481,12 +2481,12 @@ exports[`FrontPageStoryRows Container - snapshots RegularRow with images - rtl 1
class="emotion-46 emotion-47"
>
<a
aria-labelledby="promo-link-unlabelledw13xttn1limit4"
aria-labelledby="promo-link-unlabelledw13xttn1limit4Video"
class="emotion-48 emotion-49"
href="https://www.bbc.com/urdu/bbc_urdu_tv/tv_programmes/w13xttn1?limit=4"
>
<span
id="promo-link-unlabelledw13xttn1limit4"
id="promo-link-unlabelledw13xttn1limit4Video"
>
سیربین ٹی وی پروگرام آن ڈیمانڈ
</span>
Expand Down Expand Up @@ -2547,12 +2547,12 @@ exports[`FrontPageStoryRows Container - snapshots RegularRow with images - rtl 1
class="emotion-46 emotion-47"
>
<a
aria-labelledby="promo-link-unlabelledpakistan48346840"
aria-labelledby="promo-link-unlabelledpakistan48346840Text"
class="emotion-48 emotion-49"
href="https://www.bbc.com/urdu/pakistan-48346840"
>
<span
id="promo-link-unlabelledpakistan48346840"
id="promo-link-unlabelledpakistan48346840Text"
>
رمضان، عید اور سپیشل پکوان
</span>
Expand Down Expand Up @@ -2613,12 +2613,12 @@ exports[`FrontPageStoryRows Container - snapshots RegularRow with images - rtl 1
class="emotion-46 emotion-47"
>
<a
aria-labelledby="promo-link-unlabelledsport48361817"
aria-labelledby="promo-link-unlabelledsport48361817Text"
class="emotion-48 emotion-49"
href="https://www.bbc.com/urdu/sport-48361817"
>
<span
id="promo-link-unlabelledsport48361817"
id="promo-link-unlabelledsport48361817Text"
>
کرکٹ ورلڈ کپ پر بی بی سی اردو کا خصوصی ضمیمہ
</span>
Expand Down Expand Up @@ -3071,12 +3071,12 @@ exports[`FrontPageStoryRows Container - snapshots RegularRow with images 1`] = `
class="emotion-15 emotion-16"
>
<a
aria-labelledby="promo-link-unlabelledsport44416820"
aria-labelledby="promo-link-unlabelledsport44416820Text"
class="emotion-17 emotion-18"
href="https://www.bbc.com/pidgin/sport-44416820"
>
<span
id="promo-link-unlabelledsport44416820"
id="promo-link-unlabelledsport44416820Text"
>
Take dis predictor choose who go reach World Cup final
</span>
Expand Down Expand Up @@ -3159,12 +3159,12 @@ exports[`FrontPageStoryRows Container - snapshots RegularRow with images 1`] = `
class="emotion-15 emotion-16"
>
<a
aria-labelledby="promo-link-unlabelledpidgin"
aria-labelledby="promo-link-unlabelledpidginAudio"
class="emotion-17 emotion-18"
href="http://www.bbc.com/pidgin"
>
<span
id="promo-link-unlabelledpidgin"
id="promo-link-unlabelledpidginAudio"
>
Audio promo
</span>
Expand Down Expand Up @@ -3225,12 +3225,12 @@ exports[`FrontPageStoryRows Container - snapshots RegularRow with images 1`] = `
class="emotion-15 emotion-16"
>
<a
aria-labelledby="promo-link-unlabelledsport44439411"
aria-labelledby="promo-link-unlabelledsport44439411Text"
class="emotion-17 emotion-18"
href="https://www.bbc.com/pidgin/sport-44439411"
>
<span
id="promo-link-unlabelledsport44439411"
id="promo-link-unlabelledsport44439411Text"
>
World Cup 2018 Quiz: You fit name all di players wey don score Super Eagles goal for World Cup?
</span>
Expand Down Expand Up @@ -3286,12 +3286,12 @@ exports[`FrontPageStoryRows Container - snapshots RegularRow with images 1`] = `
class="emotion-15 emotion-16"
>
<a
aria-labelledby="promo-link-unlabelledsport44425543"
aria-labelledby="promo-link-unlabelledsport44425543Text"
class="emotion-17 emotion-18"
href="https://www.bbc.com/pidgin/sport-44425543"
>
<span
id="promo-link-unlabelledsport44425543"
id="promo-link-unlabelledsport44425543Text"
>
Select your best ever African 11 players for World Cup
</span>
Expand Down Expand Up @@ -4092,12 +4092,12 @@ exports[`FrontPageStoryRows Container - snapshots RegularRow without images - rt
class="emotion-38 emotion-39"
>
<a
aria-labelledby="promo-link-unlabelledw13xttn1limit4"
aria-labelledby="promo-link-unlabelledw13xttn1limit4Video"
class="emotion-40 emotion-41"
href="https://www.bbc.com/urdu/bbc_urdu_tv/tv_programmes/w13xttn1?limit=4"
>
<span
id="promo-link-unlabelledw13xttn1limit4"
id="promo-link-unlabelledw13xttn1limit4Video"
>
سیربین ٹی وی پروگرام آن ڈیمانڈ
</span>
Expand Down Expand Up @@ -4128,12 +4128,12 @@ exports[`FrontPageStoryRows Container - snapshots RegularRow without images - rt
class="emotion-38 emotion-39"
>
<a
aria-labelledby="promo-link-unlabelledpakistan48346840"
aria-labelledby="promo-link-unlabelledpakistan48346840Text"
class="emotion-40 emotion-41"
href="https://www.bbc.com/urdu/pakistan-48346840"
>
<span
id="promo-link-unlabelledpakistan48346840"
id="promo-link-unlabelledpakistan48346840Text"
>
رمضان، عید اور سپیشل پکوان
</span>
Expand Down Expand Up @@ -4164,12 +4164,12 @@ exports[`FrontPageStoryRows Container - snapshots RegularRow without images - rt
class="emotion-38 emotion-39"
>
<a
aria-labelledby="promo-link-unlabelledsport48361817"
aria-labelledby="promo-link-unlabelledsport48361817Text"
class="emotion-40 emotion-41"
href="https://www.bbc.com/urdu/sport-48361817"
>
<span
id="promo-link-unlabelledsport48361817"
id="promo-link-unlabelledsport48361817Text"
>
کرکٹ ورلڈ کپ پر بی بی سی اردو کا خصوصی ضمیمہ
</span>
Expand Down Expand Up @@ -4583,12 +4583,12 @@ exports[`FrontPageStoryRows Container - snapshots RegularRow without images 1`]
class="emotion-7 emotion-8"
>
<a
aria-labelledby="promo-link-unlabelledsport44416820"
aria-labelledby="promo-link-unlabelledsport44416820Text"
class="emotion-9 emotion-10"
href="https://www.bbc.com/pidgin/sport-44416820"
>
<span
id="promo-link-unlabelledsport44416820"
id="promo-link-unlabelledsport44416820Text"
>
Take dis predictor choose who go reach World Cup final
</span>
Expand Down Expand Up @@ -4645,12 +4645,12 @@ exports[`FrontPageStoryRows Container - snapshots RegularRow without images 1`]
class="emotion-7 emotion-8"
>
<a
aria-labelledby="promo-link-unlabelledpidgin"
aria-labelledby="promo-link-unlabelledpidginAudio"
class="emotion-9 emotion-10"
href="http://www.bbc.com/pidgin"
>
<span
id="promo-link-unlabelledpidgin"
id="promo-link-unlabelledpidginAudio"
>
Audio promo
</span>
Expand Down Expand Up @@ -4681,12 +4681,12 @@ exports[`FrontPageStoryRows Container - snapshots RegularRow without images 1`]
class="emotion-7 emotion-8"
>
<a
aria-labelledby="promo-link-unlabelledsport44439411"
aria-labelledby="promo-link-unlabelledsport44439411Text"
class="emotion-9 emotion-10"
href="https://www.bbc.com/pidgin/sport-44439411"
>
<span
id="promo-link-unlabelledsport44439411"
id="promo-link-unlabelledsport44439411Text"
>
World Cup 2018 Quiz: You fit name all di players wey don score Super Eagles goal for World Cup?
</span>
Expand Down Expand Up @@ -4717,12 +4717,12 @@ exports[`FrontPageStoryRows Container - snapshots RegularRow without images 1`]
class="emotion-7 emotion-8"
>
<a
aria-labelledby="promo-link-unlabelledsport44425543"
aria-labelledby="promo-link-unlabelledsport44425543Text"
class="emotion-9 emotion-10"
href="https://www.bbc.com/pidgin/sport-44425543"
>
<span
id="promo-link-unlabelledsport44425543"
id="promo-link-unlabelledsport44425543Text"
>
Select your best ever African 11 players for World Cup
</span>
Expand Down Expand Up @@ -5551,12 +5551,12 @@ exports[`FrontPageStoryRows Container - snapshots TopRow 1`] = `
class="emotion-15 emotion-16"
>
<a
aria-labelledby="promo-link-unlabelledsport44416820"
aria-labelledby="promo-link-unlabelledsport44416820Text"
class="emotion-17 emotion-18"
href="https://www.bbc.com/pidgin/sport-44416820"
>
<span
id="promo-link-unlabelledsport44416820"
id="promo-link-unlabelledsport44416820Text"
>
Take dis predictor choose who go reach World Cup final
</span>
Expand Down
Loading

0 comments on commit 5ffcf62

Please sign in to comment.