diff --git a/packages/components/psammead-section-label/CHANGELOG.md b/packages/components/psammead-section-label/CHANGELOG.md index aa01ea5f95..3e5b13dc79 100644 --- a/packages/components/psammead-section-label/CHANGELOG.md +++ b/packages/components/psammead-section-label/CHANGELOG.md @@ -3,6 +3,7 @@ | Version | Description | |---------|-------------| +| 5.0.3 | [PR#3328](https://github.com/bbc/psammead/pull/3328) Replace a `div` with a `span` tag to fix invalid HTML syntax | | 5.0.2 | [PR#3262](https://github.com/bbc/psammead/pull/3262) Add `backgroundColor` prop | | 5.0.1 | [PR#3195](https://github.com/bbc/psammead/pull/3195) Define `z-index` on section-label wrapper | | 5.0.0 | [PR#3133](https://github.com/bbc/psammead/pull/3133) Change background colour from white to ghost | diff --git a/packages/components/psammead-section-label/package-lock.json b/packages/components/psammead-section-label/package-lock.json index a2108379fb..ca53439332 100644 --- a/packages/components/psammead-section-label/package-lock.json +++ b/packages/components/psammead-section-label/package-lock.json @@ -1,6 +1,6 @@ { "name": "@bbc/psammead-section-label", - "version": "5.0.2", + "version": "5.0.3", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/packages/components/psammead-section-label/package.json b/packages/components/psammead-section-label/package.json index 5d609c7cf8..591518c530 100644 --- a/packages/components/psammead-section-label/package.json +++ b/packages/components/psammead-section-label/package.json @@ -1,6 +1,6 @@ { "name": "@bbc/psammead-section-label", - "version": "5.0.2", + "version": "5.0.3", "description": "React styled component for a section label", "main": "dist/index.js", "module": "esm/index.js", diff --git a/packages/components/psammead-section-label/src/__snapshots__/index.test.jsx.snap b/packages/components/psammead-section-label/src/__snapshots__/index.test.jsx.snap index 342987e032..a07c7c3627 100644 --- a/packages/components/psammead-section-label/src/__snapshots__/index.test.jsx.snap +++ b/packages/components/psammead-section-label/src/__snapshots__/index.test.jsx.snap @@ -122,7 +122,7 @@ exports[`SectionLabel When hideSectionHeader is true should add styling to hide

-
-
+

`; @@ -336,7 +336,7 @@ exports[`SectionLabel With bar With linking title should render correctly 1`] = class="c3" href="/igbo/other-index" > -
-
+ @@ -559,7 +559,7 @@ exports[`SectionLabel With bar With linking title should render correctly with a class="c3" href="/igbo/other-index" > -
-
+ @@ -782,7 +782,7 @@ exports[`SectionLabel With bar With linking title should render correctly with e class="c3" href="/igbo/other-index" > -
-
+ @@ -1005,7 +1005,7 @@ exports[`SectionLabel With bar With linking title should render correctly with e class="c3" href="/igbo/other-index" > -
-
+ @@ -1170,7 +1170,7 @@ exports[`SectionLabel With bar With plain title should render correctly 1`] = `

-
-
+

`; @@ -1326,7 +1326,7 @@ exports[`SectionLabel With bar With plain title should render correctly with ara

-
-
+

`; @@ -1482,7 +1482,7 @@ exports[`SectionLabel With bar With plain title should render correctly with exp

-
-
+

`; @@ -1638,7 +1638,7 @@ exports[`SectionLabel With bar With plain title should render correctly with exp

-
-
+

`; @@ -1829,7 +1829,7 @@ exports[`SectionLabel Without bar With linking title should render correctly 1`] class="c2" href="/igbo/other-index" > -
-
+ @@ -2029,7 +2029,7 @@ exports[`SectionLabel Without bar With linking title should render correctly wit class="c2" href="/igbo/other-index" > -
-
+ @@ -2229,7 +2229,7 @@ exports[`SectionLabel Without bar With linking title should render correctly wit class="c2" href="/igbo/other-index" > -
-
+ @@ -2371,7 +2371,7 @@ exports[`SectionLabel Without bar With plain title should render correctly 1`] =

-
-
+

`; @@ -2504,7 +2504,7 @@ exports[`SectionLabel Without bar With plain title should render correctly with

-
-
+

`; @@ -2637,7 +2637,7 @@ exports[`SectionLabel Without bar With plain title should render correctly with

-
-
+

`; diff --git a/packages/components/psammead-section-label/src/titles.jsx b/packages/components/psammead-section-label/src/titles.jsx index 508ff0fef5..e62aee326f 100644 --- a/packages/components/psammead-section-label/src/titles.jsx +++ b/packages/components/psammead-section-label/src/titles.jsx @@ -23,7 +23,7 @@ const paddingReverseDir = ({ dir }) => // This makes it work right. I don't fully understand how, but am // eternally grateful to the Flexbugs project. // https://github.com/philipwalton/flexbugs#flexbug-3 -const FlexColumn = styled.div` +const FlexColumn = styled.span` display: flex; flex-direction: column; `;