Skip to content

Commit 4bf30d7

Browse files
committed
fix branding link dark for gallery
1 parent 1c08ba9 commit 4bf30d7

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

dotcom-rendering/src/paletteDeclarations.ts

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2024,7 +2024,20 @@ const brandingLinkLight: PaletteFunction = ({ design, theme }) => {
20242024
const brandingLinkDark: PaletteFunction = ({ design, theme }) => {
20252025
switch (design) {
20262026
case ArticleDesign.Gallery:
2027-
return sourcePalette.neutral[86];
2027+
switch (theme) {
2028+
case Pillar.News:
2029+
case Pillar.Opinion:
2030+
case Pillar.Sport:
2031+
case Pillar.Culture:
2032+
case Pillar.Lifestyle:
2033+
return pillarPalette(theme, 500);
2034+
case ArticleSpecial.Labs:
2035+
return sourcePalette.specialReport[500];
2036+
case ArticleSpecial.SpecialReport:
2037+
return sourcePalette.specialReport[500];
2038+
case ArticleSpecial.SpecialReportAlt:
2039+
return sourcePalette.news[500];
2040+
}
20282041
case ArticleDesign.Standard:
20292042
case ArticleDesign.Review:
20302043
case ArticleDesign.Explainer:

0 commit comments

Comments
 (0)