Skip to content

Commit

Permalink
Update dotcom-rendering/src/paletteDeclarations.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Clifton <110032454+DanielCliftonGuardian@users.noreply.github.com>
  • Loading branch information
domlander and DanielCliftonGuardian committed Dec 12, 2024
1 parent 36232ea commit 1a28f88
Showing 1 changed file with 9 additions and 20 deletions.
29 changes: 9 additions & 20 deletions dotcom-rendering/src/paletteDeclarations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4894,32 +4894,21 @@ const staffPickBadgeTextDark: PaletteFunction = () => sourcePalette.neutral[7];

const speechBubbleBackgroundLight: PaletteFunction = ({ theme, design }) => {
switch (theme) {
case Pillar.News: {
case Pillar.News:
return design === ArticleDesign.Analysis
? sourcePalette.news[300]
: sourcePalette.news[400];
}
case Pillar.Opinion: {
return sourcePalette.opinion[400];
}
case Pillar.Sport: {
return sourcePalette.sport[400];
}
case Pillar.Culture: {
return sourcePalette.culture[400];
}
case Pillar.Lifestyle: {
return sourcePalette.lifestyle[400];
}
case ArticleSpecial.Labs: {
case Pillar.Opinion:
case Pillar.Sport:
case Pillar.Culture:
case Pillar.Lifestyle:
return pillarPalette(theme, 400);
case ArticleSpecial.Labs:
return sourcePalette.labs[400];
}
case ArticleSpecial.SpecialReport: {
case ArticleSpecial.SpecialReport:
return sourcePalette.specialReport[400];
}
case ArticleSpecial.SpecialReportAlt: {
case ArticleSpecial.SpecialReportAlt:
return sourcePalette.specialReportAlt[200];
}
}
};

Expand Down

0 comments on commit 1a28f88

Please sign in to comment.