Skip to content

Commit f8e18e5

Browse files
authored
Merge branch 'main' into link-to-rss-feeds-from-head
2 parents 804888f + b2c00c1 commit f8e18e5

File tree

5 files changed

+16
-5
lines changed

5 files changed

+16
-5
lines changed

dotcom-rendering/src/components/ArticleHeadline.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,11 @@ const zIndex = css`
247247
z-index: 1;
248248
`;
249249

250-
const ageWarningMargins = (format: ArticleFormat) =>
251-
format.display === ArticleDisplay.Immersive
250+
const ageWarningMargins = (format: ArticleFormat) => {
251+
if (format.design === ArticleDesign.Gallery) {
252+
return '';
253+
}
254+
return format.display === ArticleDisplay.Immersive
252255
? css`
253256
margin-left: 0px;
254257
margin-bottom: 0px;
@@ -275,6 +278,7 @@ const ageWarningMargins = (format: ArticleFormat) =>
275278
margin-top: 0;
276279
}
277280
`;
281+
};
278282

279283
const backgroundStyles = css`
280284
background-color: ${themePalette('--age-warning-wrapper-background')};

dotcom-rendering/src/components/marketing/banners/ThreeTierChoiceCardsV2.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ const styles = {
8787
container: css`
8888
display: flex;
8989
gap: ${space[5]}px;
90+
background-color: inherit;
9091
`,
9192

9293
choiceCardStyles: css`

dotcom-rendering/src/components/marketing/banners/designableBanner/DesignableBannerV2.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -746,15 +746,15 @@ const styles = {
746746
max-width: ${phabletContentMaxWidth};
747747
}
748748
${from.desktop} {
749-
margin: 0 ${space[3]}px;
750749
justify-self: end;
750+
width: 299px;
751751
}
752752
${between.desktop.and.wide} {
753-
max-width: 380px;
753+
width: 380px;
754754
}
755755
${from.wide} {
756-
max-width: 485px;
757756
align-self: start;
757+
width: 380px;
758758
}
759759
`,
760760
guardianLogoContainer: css`
@@ -813,6 +813,8 @@ const styles = {
813813
margin-bottom: ${space[6]}px;
814814
gap: 0;
815815
margin-top: ${space[3]}px;
816+
margin-right: 0;
817+
margin-left: 0;
816818
817819
a {
818820
width: 100%;

dotcom-rendering/src/layouts/GalleryLayout.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ const addBranding = (gallery: Gallery): Gallery => ({
2020
...gallery,
2121
frontendData: {
2222
...gallery.frontendData,
23+
webPublicationDateDeprecated: '2020-03-28T07:27:19.000Z',
2324
commercialProperties: {
2425
...gallery.frontendData.commercialProperties,
2526
UK: {

dotcom-rendering/src/paletteDeclarations.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3002,6 +3002,8 @@ const articleBackgroundDark: PaletteFunction = ({ design, theme }) => {
30023002
return sourcePalette.neutral[7];
30033003
case ArticleDesign.LiveBlog:
30043004
return sourcePalette.neutral[0];
3005+
case ArticleDesign.Gallery:
3006+
return sourcePalette.neutral[10];
30053007
case ArticleDesign.Standard:
30063008
case ArticleDesign.Review:
30073009
case ArticleDesign.Explainer:
@@ -4266,6 +4268,7 @@ const linkKickerTextDark: PaletteFunction = ({ theme }) => {
42664268
const ageWarningWrapperBackground: PaletteFunction = (format) => {
42674269
switch (format.design) {
42684270
case ArticleDesign.Interview:
4271+
case ArticleDesign.Gallery:
42694272
return 'transparent';
42704273
default:
42714274
return headlineBackgroundLight(format);

0 commit comments

Comments
 (0)