From 0b775fb600fa83dc548086d5faac6da4b6c962b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81rgio=20Ramos?= Date: Wed, 11 Jan 2017 14:14:26 +0000 Subject: [PATCH] borderless MiniMetric --- ui/src/components/mini-metric/view.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ui/src/components/mini-metric/view.js b/ui/src/components/mini-metric/view.js index f0d13005..684e1615 100644 --- a/ui/src/components/mini-metric/view.js +++ b/ui/src/components/mini-metric/view.js @@ -15,15 +15,20 @@ const { default: styled } = Styled; +const border = (props) => !props.borderless + ? `solid ${remcalc(1)} ${colors.borderSecondary}` + : 'none'; + const Container = styled.div` position: relative; height: 100%; width: 100%; background-color: ${colors.miniBackground}; - border: solid ${remcalc(1)} ${colors.borderSecondary}; + border: ${border}; `; const Shadow = styled.div` + z-index: 1; position: absolute; height: 100%; width: ${remcalc(9)};