fix: double borders when using divide

This commit is contained in:
Mark Lawlor
2022-05-17 07:06:01 +10:00
parent 0264febc37
commit b56b483467
2 changed files with 8 additions and 8 deletions

View File

@@ -47,7 +47,7 @@ exports[`Border - Divide Width divide-x-2 1`] = `
style={
Array [
Object {
"borderLeftWidth": 2,
"borderLeftWidth": 0,
"borderRightWidth": 2,
},
]
@@ -76,7 +76,7 @@ exports[`Border - Divide Width divide-x-4 1`] = `
style={
Array [
Object {
"borderLeftWidth": 4,
"borderLeftWidth": 0,
"borderRightWidth": 4,
},
]
@@ -105,7 +105,7 @@ exports[`Border - Divide Width divide-x-8 1`] = `
style={
Array [
Object {
"borderLeftWidth": 8,
"borderLeftWidth": 0,
"borderRightWidth": 8,
},
]
@@ -164,7 +164,7 @@ exports[`Border - Divide Width divide-y-2 1`] = `
Array [
Object {
"borderBottomWidth": 2,
"borderTopWidth": 2,
"borderTopWidth": 0,
},
]
}
@@ -193,7 +193,7 @@ exports[`Border - Divide Width divide-y-4 1`] = `
Array [
Object {
"borderBottomWidth": 4,
"borderTopWidth": 4,
"borderTopWidth": 0,
},
]
}
@@ -222,7 +222,7 @@ exports[`Border - Divide Width divide-y-8 1`] = `
Array [
Object {
"borderBottomWidth": 8,
"borderTopWidth": 8,
"borderTopWidth": 0,
},
]
}

View File

@@ -16,7 +16,7 @@ export const divide: CustomPluginFunction = ({
"&": {
"@selector (> *:not(:first-child))": {
"border-right-width": value,
"border-left-width": value,
"border-left-width": 0,
},
},
};
@@ -27,7 +27,7 @@ export const divide: CustomPluginFunction = ({
return {
"&": {
"@selector (> *:not(:first-child))": {
"border-top-width": value,
"border-top-width": 0,
"border-bottom-width": value,
},
},