Skip to content

Commit aff885e

Browse files
committed
use transparentColour for rgba colouring
1 parent d2109d9 commit aff885e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dotcom-rendering/src/paletteDeclarations.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2989,7 +2989,7 @@ const articleBackgroundLight: PaletteFunction = ({
29892989
case ArticleDesign.FullPageInteractive:
29902990
return 'transparent';
29912991
case ArticleDesign.Gallery:
2992-
return 'rgba(0,0,0,.25)';
2992+
return transparentColour(sourcePalette.neutral[0], 0.25);
29932993
default:
29942994
switch (theme) {
29952995
case ArticleSpecial.SpecialReport:
@@ -3034,7 +3034,7 @@ const articleBackgroundDark: PaletteFunction = ({ design, theme }) => {
30343034
return sourcePalette.neutral[10];
30353035
}
30363036
case ArticleDesign.Gallery:
3037-
return 'rgba(0,0,0,.25)'; // TODO: is this the correct color for dark mode?
3037+
return transparentColour(sourcePalette.neutral[0], 0.25);
30383038
default:
30393039
return sourcePalette.neutral[10];
30403040
}

0 commit comments

Comments
 (0)