Skip to content

Commit 83b2a1e

Browse files
committed
[triangle-generator] Fix incorrect jss generated code
1 parent f33c707 commit 83b2a1e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/apps/triangle-generator/Code/generate-example.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ function generateJssExample(value) {
3232
const { borderWidth, borderColor } = getTriangleStyles(value);
3333
const shared = `width: 0,
3434
height: 0,
35-
border-style: 'solid',
36-
border-width: '${borderWidth}',
37-
border-color: '${borderColor}',`;
35+
borderStyle: 'solid',
36+
borderWidth: '${borderWidth}',
37+
borderColor: '${borderColor}',`;
3838

3939
const element = `element: {\n ${shared}\n},`;
4040
const pseudo = `'&::after': {\n content: "''",\n display: 'block',\n ${shared} \n},`;

0 commit comments

Comments
 (0)