Skip to content

Commit 6ab0642

Browse files
authored
Merge branch 'main' into feat/sponsored-content-label
2 parents 2f919bc + acd3b99 commit 6ab0642

File tree

8 files changed

+31
-7
lines changed

8 files changed

+31
-7
lines changed

dotcom-rendering/src/components/ArticleHeadline.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,8 @@ const galleryStyles = css`
397397
${grid.between('grid-start', 'centre-column-end')}
398398
399399
grid-row: 7/9;
400+
position: relative;
401+
z-index: ${getZIndex('articleHeadline')};
400402
401403
${from.tablet} {
402404
${grid.between('centre-column-start', 'grid-end')};

dotcom-rendering/src/components/MainMediaGallery.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { isUndefined } from '@guardian/libs';
33
import { from } from '@guardian/source/foundations';
44
import { grid } from '../grid';
55
import { type ArticleFormat } from '../lib/articleFormat';
6+
import { getZIndex } from '../lib/getZIndex';
67
import { getImage } from '../lib/image';
78
import { type ImageBlockElement } from '../types/content';
89
import { type RenderingTarget } from '../types/renderingTarget';
@@ -19,8 +20,10 @@ type Props = {
1920

2021
const styles = css`
2122
${grid.column.all}
23+
position: relative;
2224
height: calc(80vh - 48px);
2325
grid-row: 1/8;
26+
z-index: ${getZIndex('mainMedia')};
2427
${from.desktop} {
2528
height: calc(100vh - 48px);
2629
}

dotcom-rendering/src/components/MostViewedFooterGrid.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { palette } from '../palette';
1010
import type { TrailTabType, TrailType } from '../types/trails';
1111
import { MostViewedFooterItem } from './MostViewedFooterItem';
1212

13-
const thinGreySolid = `1px solid ${palette('--article-border')}`;
13+
const thinGreySolid = `1px solid ${palette('--article-section-border')}`;
1414

1515
const hidePanel = css`
1616
display: none;
@@ -85,7 +85,7 @@ const gridContainer = css`
8585
8686
/* We set left border on the grid container, and then right border on
8787
the gridItems to prevent borders doubling up */
88-
border-left: 1px solid ${palette('--article-border')};
88+
border-left: 1px solid ${palette('--article-section-border')};
8989
`;
9090

9191
type Props = {

dotcom-rendering/src/components/MostViewedFooterItem.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ import { LinkHeadline } from './LinkHeadline';
1515
const gridItem = css`
1616
position: relative;
1717
18-
border-top: 1px solid ${palette('--article-border')};
18+
border-top: 1px solid ${palette('--article-section-border')};
1919
2020
/* The left border is set on the container */
21-
border-right: 1px solid ${palette('--article-border')};
21+
border-right: 1px solid ${palette('--article-section-border')};
2222
min-height: 52px;
2323
2424
&:hover {

dotcom-rendering/src/components/OnwardsUpper.importable.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ export const OnwardsUpper = ({
308308
{!!url && (
309309
<Section
310310
fullWidth={true}
311-
borderColour={palette('--article-border')}
311+
borderColour={palette('--article-section-border')}
312312
>
313313
<FetchOnwardsData
314314
url={url}
@@ -325,7 +325,7 @@ export const OnwardsUpper = ({
325325
{!!curatedDataUrl && !isPaidContent && (
326326
<Section
327327
fullWidth={true}
328-
borderColour={palette('--article-border')}
328+
borderColour={palette('--article-section-border')}
329329
>
330330
<FetchOnwardsData
331331
url={curatedDataUrl}

dotcom-rendering/src/components/SeriesSectionLink.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import {
1919
type ArticleFormat,
2020
ArticleSpecial,
2121
} from '../lib/articleFormat';
22+
import { getZIndex } from '../lib/getZIndex';
2223
import { palette as themePalette } from '../palette';
2324
import type { TagType } from '../types/tag';
2425
import { Hide } from './Hide';
@@ -370,6 +371,8 @@ export const SeriesSectionLink = ({
370371
format.design === ArticleDesign.Gallery &&
371372
css`
372373
display: inline-block;
374+
position: relative;
375+
z-index: ${getZIndex('articleHeadline')};
373376
`,
374377
format.display === ArticleDisplay.Immersive &&
375378
css`

dotcom-rendering/src/layouts/GalleryLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ export const GalleryLayout = (props: WebProps | AppProps) => {
471471
data-link-name="most-popular"
472472
data-component="most-popular"
473473
backgroundColour={palette('--article-section-background')}
474-
borderColour={palette('--article-border')}
474+
borderColour={palette('--article-section-border')}
475475
fontColour={palette('--article-section-title')}
476476
>
477477
<MostViewedFooterLayout renderAds={isWeb && renderAds}>

dotcom-rendering/src/paletteDeclarations.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3401,6 +3401,18 @@ const articleBorderLight: PaletteFunction = ({ design, theme }) => {
34013401
}
34023402
};
34033403

3404+
const articleSectionBorderLight: PaletteFunction = (format) => {
3405+
if (format.design === ArticleDesign.Gallery) {
3406+
return sourcePalette.neutral[86];
3407+
}
3408+
3409+
return articleBorderLight(format);
3410+
};
3411+
3412+
const articleSectionBorderDark: PaletteFunction = () => {
3413+
return sourcePalette.neutral[20];
3414+
};
3415+
34043416
const footerBorderLight: PaletteFunction = () => {
34053417
return sourcePalette.neutral[86];
34063418
};
@@ -6340,6 +6352,10 @@ const paletteColours = {
63406352
light: articleSectionBackgroundLight,
63416353
dark: articleSectionBackgroundDark,
63426354
},
6355+
'--article-section-border': {
6356+
light: articleSectionBorderLight,
6357+
dark: articleSectionBorderDark,
6358+
},
63436359
'--article-section-secondary-title': {
63446360
light: articleSectionSecondaryTitleLight,
63456361
dark: articleSectionSecondaryTitleDark,

0 commit comments

Comments
 (0)