aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorAugust Skare <post@augustskare.no>2018-11-16 23:18:03 +0800
committerAugust Skare <post@augustskare.no>2018-11-16 23:18:03 +0800
commit7fec2f630c45347b1f066cbf24a46add83516529 (patch)
treea16088f31fd23f9dee885aff7aed9af84556e806 /packages
parentc08108144825c33d8db26053c1d2d41460b09359 (diff)
downloaddexon-sol-tools-7fec2f630c45347b1f066cbf24a46add83516529.tar
dexon-sol-tools-7fec2f630c45347b1f066cbf24a46add83516529.tar.gz
dexon-sol-tools-7fec2f630c45347b1f066cbf24a46add83516529.tar.bz2
dexon-sol-tools-7fec2f630c45347b1f066cbf24a46add83516529.tar.lz
dexon-sol-tools-7fec2f630c45347b1f066cbf24a46add83516529.tar.xz
dexon-sol-tools-7fec2f630c45347b1f066cbf24a46add83516529.tar.zst
dexon-sol-tools-7fec2f630c45347b1f066cbf24a46add83516529.zip
fixed base link styling color
Diffstat (limited to 'packages')
-rw-r--r--packages/dev-tools-pages/ts/components/Base.tsx2
-rw-r--r--packages/dev-tools-pages/ts/globalStyles.tsx10
2 files changed, 8 insertions, 4 deletions
diff --git a/packages/dev-tools-pages/ts/components/Base.tsx b/packages/dev-tools-pages/ts/components/Base.tsx
index a1b066d85..369a2525d 100644
--- a/packages/dev-tools-pages/ts/components/Base.tsx
+++ b/packages/dev-tools-pages/ts/components/Base.tsx
@@ -15,7 +15,7 @@ const Base: React.StatelessComponent<BaseProps> = props => (
<ThemeContext.Provider value={props.context}>
<ThemeProvider theme={props.context}>
<React.Fragment>
- <GlobalStyles />
+ <GlobalStyles colors={props.context.colors} />
<Header />
{props.children}
<Footer />
diff --git a/packages/dev-tools-pages/ts/globalStyles.tsx b/packages/dev-tools-pages/ts/globalStyles.tsx
index 1a571c0cb..a77fb4eef 100644
--- a/packages/dev-tools-pages/ts/globalStyles.tsx
+++ b/packages/dev-tools-pages/ts/globalStyles.tsx
@@ -2,9 +2,13 @@ import hljsStyles from 'highlight.js/styles/github-gist.css';
import { createGlobalStyle } from 'styled-components';
import styledNormalize from 'styled-normalize';
+import { ContextInterface } from 'ts/context';
import { media } from 'ts/variables';
-const GlobalStyles = createGlobalStyle`
+const GlobalStyles =
+ createGlobalStyle <
+ ContextInterface >
+ `
${styledNormalize}
${hljsStyles}
@@ -54,11 +58,11 @@ const GlobalStyles = createGlobalStyle`
}
a:not([class]) {
- color: black;
+ color: ${props => props.colors.type_alt};
text-decoration: none;
&:hover {
- color: black;
+ color: ${props => props.colors.type_alt};
}
}