1
0
Fork 0
mirror of synced 2024-06-29 11:31:06 +12:00

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 9c1cf98fce
commit f467f9809c

View file

@ -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 }