From 40694674357e882e9d53a39e08af25aad7632ab4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Wed, 22 Aug 2018 12:22:42 +0100 Subject: [PATCH] fix(ui): don't use new lines for rgba() style values --- ui/src/Components/Labels/BaseLabel/index.js | 24 ++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/ui/src/Components/Labels/BaseLabel/index.js b/ui/src/Components/Labels/BaseLabel/index.js index 3f6f79138..12d2ed95c 100644 --- a/ui/src/Components/Labels/BaseLabel/index.js +++ b/ui/src/Components/Labels/BaseLabel/index.js @@ -43,18 +43,18 @@ class BaseLabel extends Component { alertStore.data.colors[name][value] !== undefined ) { const c = alertStore.data.colors[name][value]; - style["backgroundColor"] = `rgba( - ${c.background.red}, - ${c.background.green}, - ${c.background.blue}, - ${c.background.alpha} - )`; - style["color"] = `rgba( - ${c.font.red}, - ${c.font.green}, - ${c.font.blue}, - ${c.font.alpha} - )`; + style["backgroundColor"] = `rgba(${[ + c.background.red, + c.background.green, + c.background.blue, + c.background.alpha + ].join(", ")})`; + style["color"] = `rgba(${[ + c.font.red, + c.font.green, + c.font.blue, + c.font.alpha + ].join(", ")})`; } return style; }