1
0
Fork 0
mirror of synced 2024-10-03 02:27:06 +13: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 be37720dc5
commit 829c2bb8ee

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 }