File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -282,7 +282,11 @@ const actOnTailwindGenerator = (
282
282
codeToCopy = `` ;
283
283
break ;
284
284
case 'gradient-text' :
285
- codeToCopy = `` ;
285
+ codeToCopy = `
286
+ text-[${ ( outputElement . children [ 0 ] as HTMLElement ) . style . fontSize } ]
287
+ bg-[${ ( outputElement . children [ 0 ] as HTMLElement ) . style . background } ]
288
+ text-transparent
289
+ bg-clip-text` ;
286
290
break ;
287
291
case 'gradient-border' :
288
292
codeToCopy = `` ;
Original file line number Diff line number Diff line change @@ -222,7 +222,8 @@ getValues();
222
222
223
223
// Tailwind codecopy handler
224
224
function tailwindHandler ( ) {
225
- copyTailwindCodeToClipboard ( attribute ) ;
225
+ const outputElement = getOutput ( attribute ) ;
226
+ copyTailwindCodeToClipboard ( attribute , outputElement ) ;
226
227
showPopup (
227
228
'Tailwind Code Copied' ,
228
229
'Code has been successfully copied to clipboard' ,
You can’t perform that action at this time.
0 commit comments