Skip to content

Commit 2d6c27a

Browse files
committed
fix comment count colouring for gallery
Co-authored-by: Jamie B <[email protected]>
1 parent 426a78e commit 2d6c27a

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

dotcom-rendering/src/paletteDeclarations.ts

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4899,21 +4899,9 @@ const commentCountFill: PaletteFunction = ({ design, theme }) => {
48994899
}
49004900

49014901
if (design === ArticleDesign.Gallery) {
4902-
switch (theme) {
4903-
case Pillar.Opinion:
4904-
case Pillar.News:
4905-
case Pillar.Sport:
4906-
case Pillar.Culture:
4907-
case Pillar.Lifestyle:
4908-
return pillarPalette(theme, 400);
4909-
case ArticleSpecial.Labs:
4910-
return sourcePalette.labs[400];
4911-
case ArticleSpecial.SpecialReportAlt:
4912-
return sourcePalette.brandAlt[300];
4913-
case ArticleSpecial.SpecialReport:
4914-
return sourcePalette.brandAlt[400];
4915-
}
4902+
return sourcePalette.neutral[46];
49164903
}
4904+
49174905
if (theme === ArticleSpecial.Labs) return sourcePalette.neutral[7];
49184906
if (theme === ArticleSpecial.SpecialReport) {
49194907
return sourcePalette.specialReport[300];

0 commit comments

Comments
 (0)