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 #4558 from bbc/remove-aria-labelledby-attr
Browse files Browse the repository at this point in the history
remove aria-labelledby attribute
  • Loading branch information
Jonathan Roebuck authored Sep 20, 2021
2 parents 5e22289 + cc757ed commit f9ae9b8
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 11 deletions.
1 change: 1 addition & 0 deletions packages/components/psammead-section-label/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<!-- prettier-ignore -->
| Version | Description |
|---------|-------------|
| 7.1.5 | [PR#4558](https://github.com/bbc/psammead/pull/4558) remove aria-labelledby attribute |
| 7.1.4 | [PR#4548](https://github.com/bbc/psammead/pull/4548) Bumps dependencies |
| 7.1.3 | [PR#4547](https://github.com/bbc/psammead/pull/4547) Bumps packages |
| 7.1.2 | [PR#4545](https://github.com/bbc/psammead/pull/4545) Bump dependencies for @bbc/psammead-styles |
Expand Down
5 changes: 3 additions & 2 deletions packages/components/psammead-section-label/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ The only provided child should be the title for the section, provided as a _stri
| children | string | yes | N/A | `'Most Read'` |
| dir | string | no | `'ltr'` | `'rtl'` |
| href | string | no | `null` | `'https://www.bbc/com/igbo/egwuregwu'` |
| labelId | string | yes | N/A | `top-stories-label` |
| id | string | no | N/A | `top-stories-id` |
| labelId | string | no | N/A | `top-stories-label` |
| linkText | string | no | `null` | `'See More'` |
| script | object | yes | N/A | { canon: { groupA: { fontSize: '28', lineHeight: '32',}, groupB: { fontSize: '32', lineHeight: '36' }, groupD: { fontSize: '44', lineHeight: '48' } }, trafalgar: { groupA: { fontSize: '20', lineHeight: '24' }, groupB: { fontSize: '24', lineHeight: '28' }, groupD: { fontSize: '32', lineHeight: '36' } } } |
| service | string | yes | N/A | `'news'` |
Expand Down Expand Up @@ -126,7 +127,7 @@ const WrappingComponent = () => (
script={latin}
dir="ltr"
href="https://www.bbc.com/news/index"
labelId="example-section-label"
id="example-section-label"
linkText="See More"
service="news"
>
Expand Down
2 changes: 1 addition & 1 deletion packages/components/psammead-section-label/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bbc/psammead-section-label",
"version": "7.1.4",
"version": "7.1.5",
"description": "React styled component for a section label",
"main": "dist/index.js",
"module": "esm/index.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,6 @@ exports[`SectionLabel With bar With linking title should render correctly 1`] =
class="emotion-6 emotion-7"
>
<a
aria-labelledby="test-section-label"
class="emotion-8 emotion-9"
href="/igbo/other-index"
>
Expand Down Expand Up @@ -623,7 +622,6 @@ exports[`SectionLabel With bar With linking title should render correctly with a
class="emotion-6 emotion-7"
>
<a
aria-labelledby="test-section-label"
class="emotion-8 emotion-9"
href="/igbo/other-index"
>
Expand Down Expand Up @@ -870,7 +868,6 @@ exports[`SectionLabel With bar With linking title should render correctly with e
class="emotion-6 emotion-7"
>
<a
aria-labelledby="test-section-label"
class="emotion-8 emotion-9"
href="/igbo/other-index"
>
Expand Down Expand Up @@ -1117,7 +1114,6 @@ exports[`SectionLabel With bar With linking title should render correctly with e
class="emotion-6 emotion-7"
>
<a
aria-labelledby="test-section-label"
class="emotion-8 emotion-9"
href="/igbo/other-index"
>
Expand Down Expand Up @@ -2374,7 +2370,6 @@ exports[`SectionLabel Without bar With linking title should render correctly 1`]
class="emotion-4 emotion-5"
>
<a
aria-labelledby="test-section-label"
class="emotion-6 emotion-7"
href="/igbo/other-index"
>
Expand Down Expand Up @@ -2596,7 +2591,6 @@ exports[`SectionLabel Without bar With linking title should render correctly wit
class="emotion-4 emotion-5"
>
<a
aria-labelledby="test-section-label"
class="emotion-6 emotion-7"
href="/igbo/other-index"
>
Expand Down Expand Up @@ -2818,7 +2812,6 @@ exports[`SectionLabel Without bar With linking title should render correctly wit
class="emotion-4 emotion-5"
>
<a
aria-labelledby="test-section-label"
class="emotion-6 emotion-7"
href="/igbo/other-index"
>
Expand Down
2 changes: 1 addition & 1 deletion packages/components/psammead-section-label/src/titles.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export const LinkTitle = ({
service,
backgroundColor,
}) => (
<SectionLabelLink href={href} labelId={labelId} aria-labelledby={labelId}>
<SectionLabelLink href={href} labelId={labelId}>
<FlexColumn>
<FlexRow role="text">
<Title
Expand Down

0 comments on commit f9ae9b8

Please sign in to comment.