Commit a398530
authored
Remove
It isn't needed for the layout. The lightbox link is absolute positioned
relative to the figure, which is itself relative positioned; this allows
the link to precisely overlay the image.
Relative positioning the figure, however, causes it to be drawn over the
headline and series link. These elements would normally appear over the
top of the image because they are a) placed in the same location
with CSS grid, and b) later in the DOM. Relatively positioning these
elements solves this problem, and allows them to overlay the image
again.
In summary, this layout has already been achieved by positioning the
elements, so setting additional `z-index` properties is not required.z-index from gallery main media (#14599)1 parent 5b7b429 commit a398530
File tree
3 files changed
+0
-5
lines changed- dotcom-rendering/src/components
3 files changed
+0
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
398 | 398 | | |
399 | 399 | | |
400 | 400 | | |
401 | | - | |
402 | 401 | | |
403 | 402 | | |
404 | 403 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| |||
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
26 | | - | |
27 | 25 | | |
28 | 26 | | |
29 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
| |||
372 | 371 | | |
373 | 372 | | |
374 | 373 | | |
375 | | - | |
376 | 374 | | |
377 | 375 | | |
378 | 376 | | |
| |||
0 commit comments