From 3fdc6e5e477c496aed8bf31866d1aefc0a6816a0 Mon Sep 17 00:00:00 2001
From: August Skare <post@augustskare.no>
Date: Fri, 26 Oct 2018 08:15:43 +0200
Subject: text color in trace component

---
 packages/dev-tools-pages/ts/components/Trace.tsx | 19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)

(limited to 'packages/dev-tools-pages/ts/components/Trace.tsx')

diff --git a/packages/dev-tools-pages/ts/components/Trace.tsx b/packages/dev-tools-pages/ts/components/Trace.tsx
index 4b34ff145..db3846256 100644
--- a/packages/dev-tools-pages/ts/components/Trace.tsx
+++ b/packages/dev-tools-pages/ts/components/Trace.tsx
@@ -32,7 +32,7 @@ function Trace(props: Props) {
 
                     <List>
                         <Item>
-                            <Copy>
+                            <Copy dark>
                                 <Gamma as="h3">No location</Gamma>
                                 <p>
                                     The error basically says "anything could have gone wrong here", which keeps you
@@ -43,7 +43,7 @@ function Trace(props: Props) {
                         </Item>
 
                         <Item>
-                            <Copy>
+                            <Copy dark>
                                 <Gamma as="h3">Time-consuming</Gamma>
                                 <p>
                                     Working with a large code-base that contains hundreds of smart contracts, finding
@@ -94,8 +94,8 @@ function Trace(props: Props) {
 
 const StyledSection =
     styled.section <
-        TraceProps >
-        `
+    TraceProps >
+    `
     max-width: 90rem;
     margin: 0 auto;
     background: linear-gradient(to right, ${colors.black} 50%, ${props => props.background} 50%);
@@ -126,8 +126,8 @@ const Wrapper = styled(Container)`
 
 const Block =
     styled.div <
-        TraceProps >
-        `
+    TraceProps >
+    `
     width: 50%;
     background: ${props => (props.background ? props.background : colors.black)};
     color: ${props => (props.background ? 'inherit' : colors.white)};
@@ -181,9 +181,14 @@ const Item = styled.li`
     }
 `;
 
-const Copy = styled.div`
+const Copy = styled.div<{dark?: boolean;}>`
     max-width: 20rem;
     margin-right: 5.875rem;
+    ${props => props.dark && `
+        p {
+            color: #ccc;
+        }
+    `}
 
     ${media.small`margin-right: 2.0625rem;`};
 `;
-- 
cgit v1.2.3

