From c9b990070fc35d31b56957263e1ea9fe2fe67b40 Mon Sep 17 00:00:00 2001 From: Sunil Pai Date: Sat, 6 Jun 2020 02:55:25 +0100 Subject: [PATCH] remove grayscale treatment (#3024) As per https://twitter.com/sliminality/status/1269033413488459776, there's feedback that the contrast isn't great for reading. I myself have trouble with low contrast text, (and long sightedness), and I thought it was fine. I was clearly mistaken. Removing this for now to get back to a non harmful position, and we can decide later what to do instead. --- src/components/Container/Container.js | 9 +-------- src/components/LayoutFooter/FooterNav.js | 1 - src/components/LayoutHeader/Header.js | 2 +- src/components/MarkdownPage/MarkdownPage.js | 1 - src/pages/index.js | 1 - .../components/NavigationFooter/NavigationFooter.js | 2 -- src/templates/components/Sidebar/Sidebar.js | 2 -- src/theme.js | 2 -- 8 files changed, 2 insertions(+), 18 deletions(-) diff --git a/src/components/Container/Container.js b/src/components/Container/Container.js index 0a872453..36c932ea 100644 --- a/src/components/Container/Container.js +++ b/src/components/Container/Container.js @@ -15,20 +15,13 @@ import type {Node} from 'react'; * This component wraps page content sections (eg header, footer, main). * It provides consistent margin and max width behavior. */ -const Container = ({ - children, - grayscale, -}: { - children: Node, - grayscale: boolean, -}) => ( +const Container = ({children}: {children: Node}) => (
( css={{ display: 'inline-flex', flexDirection: 'column', - filter: 'grayscale(100%)', }}> {children}
diff --git a/src/components/LayoutHeader/Header.js b/src/components/LayoutHeader/Header.js index 21daf78f..9a49192e 100644 --- a/src/components/LayoutHeader/Header.js +++ b/src/components/LayoutHeader/Header.js @@ -61,7 +61,7 @@ const Header = ({location}: {location: Location}) => ( - +
{date}{' '} {hasAuthors && ( diff --git a/src/pages/index.js b/src/pages/index.js index 25c7ca91..f6d18d6b 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -57,7 +57,6 @@ class Home extends Component { css={{ width: '100%', marginTop: 60, // BLM - filter: 'grayscale(100%)', // BLM }}>
{ return (