-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: added gradient border tailwind code #554
Conversation
The latest updates on your projects. Learn more about Vercel for Git βοΈ
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Compliance Checks Passed!
@@ -402,7 +402,18 @@ export const actOnTailwindGenerator = ( | |||
)} text-transparent bg-clip-text`; | |||
break; | |||
case 'gradient-border': | |||
codeToCopy = ``; | |||
element = outputElement.style; | |||
const content = window.getComputedStyle(outputElement, '::before'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<div class="relative"> | ||
<div class="before:absolute before:inset-0 before:p-6 before:mask before:mask-composite-before:border-box | ||
before:mask-composite-xor before:exclude before:bg-[content.background] before:bg-clip-border-box | ||
@if(content.borderRadius !== '0px') before:rounded-[content.borderRadius] @endif"> | ||
</div> | ||
</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using template engine syntax won't work, instead use a template literal
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals
Fixes Issue
**My PR closes #549
π¨βπ» Changes proposed)
Added Tailwind code for gradient border.
My code follows the code style of this project.
This PR does not contain plagiarized content.
The title and description of the PR is clear and explains the approach.