File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
dotcom-rendering/src/components Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 55 visuallyHidden ,
66} from '@guardian/source/foundations' ;
77import { decideBrandingLogo } from '../lib/decideLogo' ;
8+ import { getZIndex } from '../lib/getZIndex' ;
89import { palette } from '../palette' ;
910import type { Branding } from '../types/branding' ;
1011import type { DCRContainerPalette } from '../types/front' ;
@@ -52,6 +53,11 @@ const verticalStyles = {
5253 ` ,
5354} ;
5455
56+ const linkStyles = css `
57+ /* See: https://css-tricks.com/nested-links/ */
58+ z- index: ${ getZIndex ( 'card-nested-link' ) } ;
59+ ` ;
60+
5561/**
5662 * Component used to display "paid for" label alonside the sponsor logo
5763 * for a particular set of branding
@@ -90,6 +96,7 @@ export const SponsoredContentLabel = ({
9096 : 'This content has been paid for by an advertiser and produced by the Guardian Labs team.' }
9197 </ span >
9298 < a
99+ css = { linkStyles }
93100 href = { logo . link }
94101 data-sponsor = { branding . sponsorName . toLowerCase ( ) }
95102 rel = "nofollow"
You can’t perform that action at this time.
0 commit comments