Fix border not being applied due to missing border-style rule

This commit is contained in:
Andrew Kingston 2021-06-28 10:15:14 +01:00
parent be37720dc5
commit 829c2bb8ee
1 changed files with 5 additions and 0 deletions

View File

@ -34,6 +34,11 @@ export const styleable = (node, styles = {}) => {
baseStyles.overflow = "hidden" 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 componentId = newStyles.id
const customStyles = newStyles.custom || "" const customStyles = newStyles.custom || ""
const normalStyles = { ...baseStyles, ...newStyles.normal } const normalStyles = { ...baseStyles, ...newStyles.normal }