Skip to content

Commit dcfd09f

Browse files
deedeehmarjisound
authored andcommitted
Fix styling for end of Labs Galleries links in light mode
1 parent 1448372 commit dcfd09f

File tree

2 files changed

+12
-18
lines changed

2 files changed

+12
-18
lines changed

dotcom-rendering/src/components/SubMeta.tsx

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -62,22 +62,6 @@ 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-
);
8165
background-position: top;
8266
background-repeat: no-repeat;
8367
`;

dotcom-rendering/src/paletteDeclarations.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3977,7 +3977,12 @@ const subMetaBackgroundDark: PaletteFunction = ({ design, theme }) => {
39773977
const subMetaTextLight: PaletteFunction = ({ design, theme }) => {
39783978
switch (theme) {
39793979
case ArticleSpecial.Labs:
3980-
return sourcePalette.neutral[7];
3980+
switch (design) {
3981+
case ArticleDesign.Gallery:
3982+
return sourcePalette.neutral[86];
3983+
default:
3984+
return sourcePalette.neutral[7];
3985+
}
39813986
case ArticleSpecial.SpecialReport:
39823987
return sourcePalette.specialReport[100];
39833988
default:
@@ -4053,7 +4058,12 @@ const subMetaTextHoverLight: PaletteFunction = ({ design, theme }) => {
40534058
case ArticleDesign.Picture:
40544059
switch (theme) {
40554060
case ArticleSpecial.Labs:
4056-
return sourcePalette.neutral[100];
4061+
switch (design) {
4062+
case ArticleDesign.Gallery:
4063+
return sourcePalette.neutral[7];
4064+
default:
4065+
return sourcePalette.neutral[100];
4066+
}
40574067
default:
40584068
return sourcePalette.neutral[7];
40594069
}

0 commit comments

Comments
 (0)