Skip to content

Commit

Permalink
[triangle-generator] Fix incorrect jss generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
rtivital committed May 24, 2021
1 parent f33c707 commit 83b2a1e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/apps/triangle-generator/Code/generate-example.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ function generateJssExample(value) {
const { borderWidth, borderColor } = getTriangleStyles(value);
const shared = `width: 0,
height: 0,
border-style: 'solid',
border-width: '${borderWidth}',
border-color: '${borderColor}',`;
borderStyle: 'solid',
borderWidth: '${borderWidth}',
borderColor: '${borderColor}',`;

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

0 comments on commit 83b2a1e

Please sign in to comment.