Skip to content

Commit 4416221

Browse files
marjisounddeedeeh
andcommitted
fix the background image colour for sub meta
Co-authored-by: Dina Hafez <[email protected]>
1 parent d1423c5 commit 4416221

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

dotcom-rendering/src/components/SubMeta.tsx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,22 @@ const listStyles = css`
6262
display: flex;
6363
flex-wrap: wrap;
6464
gap: 1.5rem 0.25rem;
65+
background-image: repeating-linear-gradient(
66+
to bottom,
67+
${palette('--sub-meta-background')} 0px,
68+
${palette('--sub-meta-background')} 2.25rem,
69+
transparent 2.25rem,
70+
transparent 2.3125rem,
71+
${palette('--sub-meta-background')} 2.3125rem,
72+
${palette('--sub-meta-background')} 3rem
73+
),
74+
repeating-linear-gradient(
75+
to right,
76+
${palette('--article-border')} 0px,
77+
${palette('--article-border')} 0.1875rem,
78+
transparent 0.1875rem,
79+
transparent 0.3125rem
80+
);
6581
background-position: top;
6682
background-repeat: no-repeat;
6783
`;

dotcom-rendering/src/paletteDeclarations.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3919,13 +3919,15 @@ const subMetaBackgroundLight: PaletteFunction = ({
39193919
case ArticleDesign.Picture:
39203920
case ArticleDesign.Video:
39213921
case ArticleDesign.Audio:
3922-
case ArticleDesign.Gallery:
39233922
switch (theme) {
39243923
case ArticleSpecial.Labs:
39253924
return sourcePalette.neutral[86];
39263925
default:
39273926
return sourcePalette.neutral[7];
39283927
}
3928+
case ArticleDesign.Gallery:
3929+
return sourcePalette.neutral[7];
3930+
39293931
default:
39303932
switch (theme) {
39313933
case ArticleSpecial.SpecialReport:

0 commit comments

Comments
 (0)