Skip to content

Commit cdcbaf9

Browse files
authored
fix: update codeToCopy template (#217)
1 parent 2e684e5 commit cdcbaf9

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/lib/general.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,14 @@ function actOnGenerator(attribute: string, outputElement: HTMLElement) {
5757
element = outputElement.style;
5858
codeToCopy = `
5959
div {
60-
border: ${element.border},
61-
border-width: ${element.borderWidth},
62-
border-image-slice: ${element.borderImageSlice},
63-
border-image-source: ${element.borderImageSource},
60+
border-width:8px;
61+
border-style:solid;
62+
border-radius:${element.getPropertyValue(`--${attribute}-radius`)};
63+
border-image:linear-gradient(${element.getPropertyValue(
64+
`--${attribute}-degree`
65+
)}, ${element.getPropertyValue(
66+
`--${attribute}-color-1`
67+
)}, ${element.getPropertyValue(`--${attribute}-color-2`)}) 1;
6468
}
6569
`;
6670
break;

0 commit comments

Comments
 (0)