Changed name of export to colors and updates components

This commit is contained in:
Megan Pearson
2018-10-19 11:32:59 +02:00
parent 561f441a5b
commit 585ca203b0
8 changed files with 22 additions and 20 deletions

View File

@@ -1,6 +1,6 @@
import * as React from 'react';
import styled from 'styled-components';
import variables from '../variables';
import { colors } from '../variables';
import BaseButton from './Button';
@@ -26,8 +26,8 @@ const Base =
styled.div <
CodeProps >
`
color: ${props => (props.language === undefined ? variables.colors.white : 'inherit')};
background-color: ${props => (props.language === undefined ? variables.colors.black : variables.colors.lightGray)};
color: ${props => (props.language === undefined ? colors.white : 'inherit')};
background-color: ${props => (props.language === undefined ? colors.black : colors.lightGray)};
white-space: ${props => (props.language === undefined ? 'nowrap' : '')};
position: relative;
&:hover ${Button} {