Skip to content

Commit 4552147

Browse files
authored
fix: gradient text copied code (#266)
1 parent 9724b24 commit 4552147

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/lib/general.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,10 @@ function actOnGenerator(attribute: string, outputElement: HTMLElement) {
4343
codeToCopy = `
4444
p{
4545
font-size: ${(outputElement.children[0] as HTMLElement).style.fontSize};
46-
background: ${
47-
(outputElement.children[0] as HTMLElement).style.backgroundImage
48-
};
49-
background-clip: 'text';
50-
-webkit-background-clip: 'text';
51-
-webkit-text-fill-color: 'transparent';
46+
background: ${(outputElement.children[0] as HTMLElement).style.background};
47+
background-clip: text;
48+
-webkit-background-clip: text;
49+
-webkit-text-fill-color: transparent;
5250
}
5351
`;
5452

0 commit comments

Comments
 (0)