Skip to content

Commit 4ebb79e

Browse files
committed
add dark mode colours
1 parent 9fac7b3 commit 4ebb79e

File tree

3 files changed

+19
-5
lines changed

3 files changed

+19
-5
lines changed

dotcom-rendering/src/components/ContributorFollowBlock.importable.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ const notificationIconStyles = css`
108108
109109
svg {
110110
margin-top: -${space[1] - 1}px;
111+
fill: currentColor;
111112
}
112113
`;
113114
const notificationLabelStyles = css`
@@ -328,7 +329,10 @@ export const ContributorFollowBlock = ({
328329
/>
329330
{isFollowingContributor && (
330331
<div>
331-
<StraightLines count={1} />
332+
<StraightLines
333+
count={1}
334+
color={palette('--contributor-follow-straight-lines')}
335+
/>
332336
<NotificationAlert
333337
isFollowing={isFollowingNotifications ?? false}
334338
onClickHandler={

dotcom-rendering/src/components/ContributorFollowBlockComponent.importable.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,10 @@ export const ContributorFollowBlockComponent = ({
105105

106106
return (
107107
<div css={contributorBlockStyles}>
108-
<StraightLines count={4} />
108+
<StraightLines
109+
count={4}
110+
color={palette('--contributor-follow-straight-lines')}
111+
/>
109112
<div css={topRowStyles}>
110113
{!!avatarUrl && (
111114
<div css={avatarContainerStyles}>
@@ -135,7 +138,10 @@ export const ContributorFollowBlockComponent = ({
135138
/>
136139
</Island>
137140
</div>
138-
<StraightLines count={1} />
141+
<StraightLines
142+
count={1}
143+
color={palette('--contributor-follow-straight-lines')}
144+
/>
139145
</div>
140146
);
141147
};

dotcom-rendering/src/paletteDeclarations.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7088,11 +7088,11 @@ const paletteColours = {
70887088
},
70897089
'--contributor-follow-button-border': {
70907090
light: followIconFillLight,
7091-
dark: followIconFillDark,
7091+
dark: () => sourcePalette.neutral[20],
70927092
},
70937093
'--contributor-follow-button-border-following': {
70947094
light: () => sourcePalette.neutral[73],
7095-
dark: () => sourcePalette.neutral[73],
7095+
dark: () => sourcePalette.neutral[20],
70967096
},
70977097
'--contributor-follow-button-text': {
70987098
light: () => sourcePalette.neutral[7],
@@ -7102,6 +7102,10 @@ const paletteColours = {
71027102
light: () => sourcePalette.neutral[100],
71037103
dark: () => sourcePalette.neutral[100],
71047104
},
7105+
'--contributor-follow-straight-lines': {
7106+
light: () => sourcePalette.neutral[86],
7107+
dark: () => sourcePalette.neutral[38],
7108+
},
71057109
'--follow-icon-background': {
71067110
light: followIconBackgroundLight,
71077111
dark: followIconBackgroundDark,

0 commit comments

Comments
 (0)