Skip to content

Commit

Permalink
Merge branch 'WSTEAMA-1445-add-client-side-optimizely-code' of github…
Browse files Browse the repository at this point in the history
….com:bbc/simorgh into WSTEAMA-1445-add-client-side-optimizely-code
  • Loading branch information
louisearchibald committed Nov 15, 2024
2 parents 21c28c7 + 1742947 commit 8a7dfe4
Show file tree
Hide file tree
Showing 12 changed files with 42 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ exports[`MostReadSectionLabel assertion should render most-read section label wi
.emotion-2 {
margin: 0;
padding: 0;
scroll-margin-top: 1rem;
}
.emotion-2:focus-visible {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,7 @@ exports[`CpsOnwardJourney renders section label with element as strong 1`] = `
.emotion-9 {
margin: 0;
padding: 0;
scroll-margin-top: 1rem;
}
.emotion-9:focus-visible {
Expand Down Expand Up @@ -1092,6 +1093,7 @@ exports[`CpsOnwardJourney renders section label with with alternative background
.emotion-9 {
margin: 0;
padding: 0;
scroll-margin-top: 1rem;
}
.emotion-9:focus-visible {
Expand Down Expand Up @@ -1474,6 +1476,7 @@ exports[`CpsOnwardJourney renders section label with without bar under section l
.emotion-9 {
margin: 0;
padding: 0;
scroll-margin-top: 1rem;
}
.emotion-9:focus-visible {
Expand Down Expand Up @@ -1903,6 +1906,7 @@ exports[`CpsOnwardJourney renders skip link with multiple promos 1`] = `
.emotion-13 {
margin: 0;
padding: 0;
scroll-margin-top: 1rem;
}
.emotion-13:focus-visible {
Expand Down Expand Up @@ -2376,6 +2380,7 @@ exports[`CpsOnwardJourney renders skip link with single promo 1`] = `
.emotion-13 {
margin: 0;
padding: 0;
scroll-margin-top: 1rem;
}
.emotion-13:focus-visible {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ exports[`CpsRecommendations should render when cpsRecommendations toggle is enab
.emotion-11 {
margin: 0;
padding: 0;
scroll-margin-top: 1rem;
}
.emotion-11:focus-visible {
Expand Down Expand Up @@ -779,6 +780,7 @@ exports[`CpsRecommendations should render when cpsRecommendations toggle is enab
.emotion-11 {
margin: 0;
padding: 0;
scroll-margin-top: 1rem;
}
.emotion-11:focus-visible {
Expand Down Expand Up @@ -1632,6 +1634,7 @@ exports[`CpsRecommendations should render when cpsRecommendations toggle is enab
.emotion-11 {
margin: 0;
padding: 0;
scroll-margin-top: 1rem;
}
.emotion-11:focus-visible {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ exports[`RecentAudioEpisodes should render audio episodes correctly 1`] = `
.emotion-5 {
margin: 0;
padding: 0;
scroll-margin-top: 1rem;
}
.emotion-5:focus-visible {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ exports[`Recent Video Episodes should render video episodes correctly 1`] = `
.emotion-3 {
margin: 0;
padding: 0;
scroll-margin-top: 1rem;
}
.emotion-3:focus-visible {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ HTMLCollection [
.emotion-4 {
margin: 0;
padding: 0;
scroll-margin-top: 1rem;
}
.emotion-4:focus-visible {
Expand Down Expand Up @@ -1342,6 +1343,7 @@ exports[`IndexPageSection Container snapshots should render correctly for canoni
.emotion-4 {
margin: 0;
padding: 0;
scroll-margin-top: 1rem;
}
.emotion-4:focus-visible {
Expand Down Expand Up @@ -2634,6 +2636,7 @@ exports[`IndexPageSection Container snapshots should render correctly with a lin
.emotion-4 {
margin: 0;
padding: 0;
scroll-margin-top: 1rem;
}
.emotion-4:focus-visible {
Expand Down Expand Up @@ -3697,6 +3700,7 @@ exports[`IndexPageSection Container snapshots should render with only one item 1
.emotion-4 {
margin: 0;
padding: 0;
scroll-margin-top: 1rem;
}
.emotion-4:focus-visible {
Expand Down Expand Up @@ -4191,6 +4195,7 @@ exports[`IndexPageSection Container snapshots should render without a bar 1`] =
.emotion-4 {
margin: 0;
padding: 0;
scroll-margin-top: 1rem;
}
.emotion-4:focus-visible {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ exports[`Canonical RadioSchedule With initial data renders correctly for a servi
.emotion-5 {
margin: 0;
padding: 0;
scroll-margin-top: 1rem;
}
.emotion-5:focus-visible {
Expand Down Expand Up @@ -1521,6 +1522,7 @@ exports[`Canonical RadioSchedule Without initial data renders correctly for a se
.emotion-5 {
margin: 0;
padding: 0;
scroll-margin-top: 1rem;
}
.emotion-5:focus-visible {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ exports[`Expected use should render correctly with a single tag 1`] = `
.emotion-5 {
margin: 0;
padding: 0;
scroll-margin-top: 1rem;
}
.emotion-5:focus-visible {
Expand Down Expand Up @@ -277,6 +278,7 @@ exports[`Expected use should render correctly with multiple tags 1`] = `
.emotion-5 {
margin: 0;
padding: 0;
scroll-margin-top: 1rem;
}
.emotion-5:focus-visible {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ exports[`SectionLabel With bar When hideSectionHeader is true should add styling
.emotion-2 {
margin: 0;
padding: 0;
scroll-margin-top: 1rem;
}
.emotion-2:focus-visible {
Expand Down Expand Up @@ -173,6 +174,7 @@ exports[`SectionLabel With bar With heading overriden should render a span eleme
.emotion-2 {
margin: 0;
padding: 0;
scroll-margin-top: 1rem;
}
.emotion-2:focus-visible {
Expand Down Expand Up @@ -314,6 +316,7 @@ exports[`SectionLabel With bar With linking title should render correctly 1`] =
.emotion-2 {
margin: 0;
padding: 0;
scroll-margin-top: 1rem;
}
.emotion-2:focus-visible {
Expand Down Expand Up @@ -523,6 +526,7 @@ exports[`SectionLabel With bar With linking title should render correctly with a
.emotion-2 {
margin: 0;
padding: 0;
scroll-margin-top: 1rem;
}
.emotion-2:focus-visible {
Expand Down Expand Up @@ -732,6 +736,7 @@ exports[`SectionLabel With bar With linking title should render correctly with e
.emotion-2 {
margin: 0;
padding: 0;
scroll-margin-top: 1rem;
}
.emotion-2:focus-visible {
Expand Down Expand Up @@ -941,6 +946,7 @@ exports[`SectionLabel With bar With linking title should render correctly with e
.emotion-2 {
margin: 0;
padding: 0;
scroll-margin-top: 1rem;
}
.emotion-2:focus-visible {
Expand Down Expand Up @@ -1156,6 +1162,7 @@ exports[`SectionLabel With bar With plain title should render correctly with ara
.emotion-2 {
margin: 0;
padding: 0;
scroll-margin-top: 1rem;
}
.emotion-2:focus-visible {
Expand Down Expand Up @@ -1299,6 +1306,7 @@ exports[`SectionLabel With bar With plain title should render correctly with exp
.emotion-2 {
margin: 0;
padding: 0;
scroll-margin-top: 1rem;
}
.emotion-2:focus-visible {
Expand Down Expand Up @@ -1442,6 +1450,7 @@ exports[`SectionLabel With bar With plain title should render correctly with exp
.emotion-2 {
margin: 0;
padding: 0;
scroll-margin-top: 1rem;
}
.emotion-2:focus-visible {
Expand Down Expand Up @@ -1585,6 +1594,7 @@ exports[`SectionLabel With bar With plain title should render correctly with mob
.emotion-2 {
margin: 0;
padding: 0;
scroll-margin-top: 1rem;
}
.emotion-2:focus-visible {
Expand Down Expand Up @@ -1728,6 +1738,7 @@ exports[`SectionLabel With bar Without bar With linking title should render corr
.emotion-2 {
margin: 0;
padding: 0;
scroll-margin-top: 1rem;
}
.emotion-2:focus-visible {
Expand Down Expand Up @@ -1937,6 +1948,7 @@ exports[`SectionLabel With bar Without bar With linking title should render corr
.emotion-2 {
margin: 0;
padding: 0;
scroll-margin-top: 1rem;
}
.emotion-2:focus-visible {
Expand Down Expand Up @@ -2146,6 +2158,7 @@ exports[`SectionLabel With bar Without bar With linking title should render corr
.emotion-2 {
margin: 0;
padding: 0;
scroll-margin-top: 1rem;
}
.emotion-2:focus-visible {
Expand Down Expand Up @@ -2355,6 +2368,7 @@ exports[`SectionLabel With bar Without bar With plain title should render correc
.emotion-2 {
margin: 0;
padding: 0;
scroll-margin-top: 1rem;
}
.emotion-2:focus-visible {
Expand Down Expand Up @@ -2498,6 +2512,7 @@ exports[`SectionLabel With bar Without bar With plain title should render correc
.emotion-2 {
margin: 0;
padding: 0;
scroll-margin-top: 1rem;
}
.emotion-2:focus-visible {
Expand Down Expand Up @@ -2641,6 +2656,7 @@ exports[`SectionLabel With bar Without bar With plain title should render correc
.emotion-2 {
margin: 0;
padding: 0;
scroll-margin-top: 1rem;
}
.emotion-2:focus-visible {
Expand Down
2 changes: 2 additions & 0 deletions src/app/legacy/psammead/psammead-section-label/src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
GEL_GROUP_4_SCREEN_WIDTH_MIN,
} from '#psammead/gel-foundations/src/breakpoints';
import {
GEL_SPACING_DBL,
GEL_SPACING_TRPL,
GEL_SPACING_QUAD,
} from '#psammead/gel-foundations/src/spacings';
Expand Down Expand Up @@ -43,6 +44,7 @@ export const Heading = styled.h2`
/* reset default margins */
margin: 0;
padding: 0;
scroll-margin-top: ${GEL_SPACING_DBL};
:focus-visible {
outline: ${({ theme: { palette } }) =>
Expand Down
3 changes: 3 additions & 0 deletions src/app/pages/ArticlePage/__snapshots__/index.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ exports[`Article Page should render a ltr article (pidgin) with most read correc
.emotion-15 {
margin: 0;
padding: 0;
scroll-margin-top: 1rem;
}
.emotion-15:focus-visible {
Expand Down Expand Up @@ -1534,6 +1535,7 @@ exports[`Article Page should render a news article correctly 1`] = `
.emotion-19 {
margin: 0;
padding: 0;
scroll-margin-top: 1rem;
}
.emotion-19:focus-visible {
Expand Down Expand Up @@ -3714,6 +3716,7 @@ exports[`Article Page should render a rtl article (persian) with most read corre
.emotion-15 {
margin: 0;
padding: 0;
scroll-margin-top: 1rem;
}
.emotion-15:focus-visible {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ exports[`Radio Page Main should match snapshot for Canonical 1`] = `
.emotion-14 {
margin: 0;
padding: 0;
scroll-margin-top: 1rem;
}
.emotion-14:focus-visible {
Expand Down

0 comments on commit 8a7dfe4

Please sign in to comment.