Skip to content

Commit

Permalink
feat: add dark-mode aware background color
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Aug 14, 2020
1 parent 3ccbb97 commit 9a13b86
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/components/RelatedContentModules/Contribute.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,13 @@ const Contribute = ({ pageContext }) => {
return (
<Section
css={css`
background-color: #edeeee;
background-color: var(--color-neutrals-100);
.dark-mode & {
background-color: var(--color-dark-300);
}
`}
>
<Title>Contribute</Title>
<Button
as={ExternalLink}
href={`${repository}/issues/new/choose`}
Expand Down Expand Up @@ -65,14 +68,15 @@ const Contribute = ({ pageContext }) => {
css={css`
margin-top: 0.5rem;
margin-bottom: 0;
font-size: 0.8rem;
font-size: 0.75rem;
display: block;
text-align: center;
`}
>
Read our
Read our{' '}
<a href="https://github.com/newrelic/developer-website/blob/main/CONTRIBUTING.md">
guide
</a>
</a>{' '}
on how to contribute
</p>
</Section>
Expand Down

0 comments on commit 9a13b86

Please sign in to comment.