Skip to content

Commit

Permalink
Update cardHasDarkBackground for media cards
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmockett committed Dec 16, 2024
1 parent 8ddf117 commit 6b2fd4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dotcom-rendering/src/lib/cardHelpers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe('cardHasDarkBackground', () => {
{
format: galleryFormat,
containerPalette: undefined,
expectedResult: true,
expectedResult: false,
},
{
format: pictureFormat,
Expand Down
2 changes: 1 addition & 1 deletion dotcom-rendering/src/lib/cardHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const cardHasDarkBackground = (
case 'PodcastPalette':
// If no containerPalette provided, card is in a standard container
case undefined: {
return isMediaCard(format);
return false;
}
}
};

0 comments on commit 6b2fd4f

Please sign in to comment.