Skip to content

Commit

Permalink
Fixed announcement banner text in dark mode (keystonejs#7036)
Browse files Browse the repository at this point in the history
  • Loading branch information
JedWatson authored and bladey committed Dec 16, 2021
1 parent 6742d65 commit 671e966
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/components/Announce.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ export function Announce({ children, ...props }: AnnounceProps) {
// special styling (orange gradient)
backgroundColor: 'var(--grad4-2)',
backgroundImage: `linear-gradient(116.01deg, var(--grad2-2), var(--grad2-1))`,
color: 'var(--brand-text)',
// color: 'var(--brand-text)',
color: 'var(--app-bg)', // ensures dark mode works with the gradient background
padding: '1rem',
textAlign: 'center',
'& a': {
color: 'var(--brand-text)',
color: 'var(--app-bg)',
textDecoration: 'underline',
},
}}
Expand Down

0 comments on commit 671e966

Please sign in to comment.