Skip to content

Commit

Permalink
Use article background colour for dark ad label
Browse files Browse the repository at this point in the history
  • Loading branch information
emma-imber committed Jan 8, 2025
1 parent 691a87c commit 663dab0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dotcom-rendering/src/components/AdSlot.web.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const outOfPageStyles = css`

const darkLabelStyles = css`
.ad-slot[data-label-show='true']:not(.ad-slot--interscroller)::before {
background-color: transparent;
background-color: ${schemedPalette('--article-inner-background')};
border-top-color: ${palette.neutral[20]};
color: ${palette.neutral[86]};
}
Expand Down Expand Up @@ -474,6 +474,8 @@ export const AdSlot = ({
: 0}px;
`,
labelStyles,
colourScheme === 'dark' &&
darkLabelStyles,
]}
data-link-name="ad slot right"
data-name="right"
Expand Down

0 comments on commit 663dab0

Please sign in to comment.