Skip to content

Commit c3690cf

Browse files
Merge pull request #14535 from guardian/Lightbox-Click-Area-fix-
Gallery main media: constrain lightbox overlay
2 parents dcfaebe + 0fbcc80 commit c3690cf

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
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/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`

0 commit comments

Comments
 (0)