Skip to content

Commit 46d70db

Browse files
authored
Labs container redesign background and colours (#14546)
1 parent 04a54ba commit 46d70db

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

dotcom-rendering/src/components/ContainerOverrides.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -527,8 +527,9 @@ const cardBackgroundLight: ContainerFunction = (containerPalette) => {
527527
return sourcePalette.neutral[7];
528528
case 'SpecialReportAltPalette':
529529
return sourcePalette.specialReportAlt[800];
530+
//TODO: Implement Branded properly when picking up the card ticket
530531
case 'Branded':
531-
return palette('--section-background');
532+
return sourcePalette.neutral[93];
532533
}
533534
};
534535

@@ -621,7 +622,7 @@ const sectionBackgroundLight: ContainerFunction = (containerPalette) => {
621622
case 'SpecialReportAltPalette':
622623
return sourcePalette.specialReportAlt[800];
623624
case 'Branded':
624-
return sourcePalette.neutral[93];
625+
return palette('--front-container-background');
625626
}
626627
};
627628

@@ -645,7 +646,7 @@ const sectionBackgroundDark: ContainerFunction = (containerPalette) => {
645646
case 'SpecialReportAltPalette':
646647
return sourcePalette.specialReportAlt[100];
647648
case 'Branded':
648-
return sourcePalette.neutral[20];
649+
return palette('--front-container-background');
649650
}
650651
};
651652

@@ -840,7 +841,7 @@ const sectionTitleLight: ContainerFunction = (containerPalette) => {
840841
return sourcePalette.specialReportAlt[100];
841842
// Branded is expected to be used with LabsSection
842843
case 'Branded':
843-
return sourcePalette.neutral[100];
844+
return sourcePalette.neutral[0];
844845
}
845846
};
846847

0 commit comments

Comments
 (0)