From 829c2bb8eed904db6b35806f253b322fda4040e1 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Mon, 28 Jun 2021 10:15:14 +0100 Subject: [PATCH] Fix border not being applied due to missing border-style rule --- packages/client/src/utils/styleable.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/client/src/utils/styleable.js b/packages/client/src/utils/styleable.js index 3f02b36600..62688e5c07 100644 --- a/packages/client/src/utils/styleable.js +++ b/packages/client/src/utils/styleable.js @@ -34,6 +34,11 @@ export const styleable = (node, styles = {}) => { baseStyles.overflow = "hidden" } + // Append border-style css if border-width is specified + if (newStyles.normal?.["border-width"]) { + baseStyles["border-style"] = "solid" + } + const componentId = newStyles.id const customStyles = newStyles.custom || "" const normalStyles = { ...baseStyles, ...newStyles.normal }