From dcf23f412cb6b03ffa55f8716673f65f6a5e072f Mon Sep 17 00:00:00 2001 From: Alf Eaton <eaton.alf@gmail.com> Date: Fri, 8 Sep 2017 10:32:25 +0100 Subject: [PATCH] Fix upload icon --- src/atoms/Icon.js | 3 ++- src/atoms/Icon.local.scss | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 src/atoms/Icon.local.scss diff --git a/src/atoms/Icon.js b/src/atoms/Icon.js index 6c3a37d89..672dd8916 100644 --- a/src/atoms/Icon.js +++ b/src/atoms/Icon.js @@ -1,6 +1,7 @@ import React from 'react' import { pascalize } from 'humps' import * as icons from 'react-feather' +import classes from './Icon.local.scss' const Icon = ({ children, color = 'black', size = 24 }) => { // convert `arrow_left` to `ArrowLeft` @@ -10,7 +11,7 @@ const Icon = ({ children, color = 'black', size = 24 }) => { const icon = icons[name] return ( - <span>{icon({ color, size })}</span> + <span className={classes.root}>{icon({ color, size })}</span> ) } diff --git a/src/atoms/Icon.local.scss b/src/atoms/Icon.local.scss new file mode 100644 index 000000000..335bfdc38 --- /dev/null +++ b/src/atoms/Icon.local.scss @@ -0,0 +1,3 @@ +.root { + display: inline-block; +} -- GitLab