mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-23 20:23:08 +00:00
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.
This commit is contained in:
@@ -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}) => (
|
||||
<div
|
||||
css={{
|
||||
paddingLeft: 20,
|
||||
paddingRight: 20,
|
||||
marginLeft: 'auto',
|
||||
marginRight: 'auto',
|
||||
filter: grayscale ? 'grayscale(100%)' : '',
|
||||
[media.greaterThan('medium')]: {
|
||||
width: '90%',
|
||||
},
|
||||
|
||||
@@ -34,7 +34,6 @@ const FooterNav = ({children, title, layoutHasSidebar = false}: Props) => (
|
||||
css={{
|
||||
display: 'inline-flex',
|
||||
flexDirection: 'column',
|
||||
filter: 'grayscale(100%)',
|
||||
}}>
|
||||
{children}
|
||||
</div>
|
||||
|
||||
@@ -61,7 +61,7 @@ const Header = ({location}: {location: Location}) => (
|
||||
</a>
|
||||
</div>
|
||||
</Container>
|
||||
<Container grayscale={true}>
|
||||
<Container>
|
||||
<div
|
||||
css={{
|
||||
display: 'flex',
|
||||
|
||||
@@ -87,7 +87,6 @@ const MarkdownPage = ({
|
||||
<div
|
||||
css={{
|
||||
marginTop: 15,
|
||||
filter: 'grayscale(100%)', // BLM
|
||||
}}>
|
||||
{date}{' '}
|
||||
{hasAuthors && (
|
||||
|
||||
@@ -57,7 +57,6 @@ class Home extends Component {
|
||||
css={{
|
||||
width: '100%',
|
||||
marginTop: 60, // BLM
|
||||
filter: 'grayscale(100%)', // BLM
|
||||
}}>
|
||||
<header
|
||||
css={{
|
||||
|
||||
@@ -15,8 +15,6 @@ const NavigationFooter = ({next, prev, location}) => {
|
||||
return (
|
||||
<div
|
||||
css={{
|
||||
filter: 'grayscale(100%)', // BLM
|
||||
|
||||
background: colors.dark,
|
||||
color: colors.white,
|
||||
paddingTop: 50,
|
||||
|
||||
@@ -37,8 +37,6 @@ class Sidebar extends Component {
|
||||
direction="column"
|
||||
halign="stretch"
|
||||
css={{
|
||||
filter: 'grayscale(100%)', // BLM
|
||||
|
||||
width: '100%',
|
||||
paddingLeft: 20,
|
||||
position: 'relative',
|
||||
|
||||
@@ -132,8 +132,6 @@ const sharedStyles = {
|
||||
},
|
||||
},
|
||||
content: {
|
||||
filter: 'grayscale(100%)', // BLM
|
||||
|
||||
marginTop: 40,
|
||||
marginBottom: 120,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user