Skip to content

Commit c6c8024

Browse files
authored
Use neutral 38 on media card trail text (#13462)
1 parent 09eec26 commit c6c8024

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

dotcom-rendering/src/paletteDeclarations.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2513,7 +2513,16 @@ const cardHeadlineTextLight: PaletteFunction = () => sourcePalette.neutral[7];
25132513

25142514
const cardTextDark: PaletteFunction = () => sourcePalette.neutral[86];
25152515

2516-
const cardTrailTextLight: PaletteFunction = () => sourcePalette.neutral[46];
2516+
const cardTrailTextLight: PaletteFunction = (format) => {
2517+
switch (format.design) {
2518+
case ArticleDesign.Audio:
2519+
case ArticleDesign.Video:
2520+
case ArticleDesign.Gallery:
2521+
return sourcePalette.neutral[38];
2522+
default:
2523+
return sourcePalette.neutral[46];
2524+
}
2525+
};
25172526
const cardTrailTextDark: PaletteFunction = () => sourcePalette.neutral[73];
25182527

25192528
const liveKickerBackgroundLight: PaletteFunction = (format) => {

0 commit comments

Comments
 (0)