Skip to content

Commit fd16c06

Browse files
feat(helpers.ts): added tailwind code for text-shadow property (#462)
1 parent 021d722 commit fd16c06

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/lib/packages/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ export const actOnTailwindGenerator = (
298298
codeToCopy = `shadow-[${element.boxShadow.replace(/ /g, '_')}]`;
299299
break;
300300
case 'text-shadow':
301-
codeToCopy = ``;
301+
codeToCopy = `[text-shadow:${element.textShadow.replace(/[\s,]/g, '_')}]`;
302302
break;
303303
case 'input-range':
304304
codeToCopy = ``;

src/pages/text-shadow.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,8 @@ getValues();
244244

245245
// Tailwind codecopy handler
246246
function tailwindHandler() {
247-
copyTailwindCodeToClipboard(attribute);
247+
const outputElement: HTMLElement = getOutput(attribute);
248+
copyTailwindCodeToClipboard(attribute, outputElement);
248249
showPopup(
249250
'Tailwind Code Copied',
250251
'Code has been successfully copied to clipboard',

0 commit comments

Comments
 (0)