Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

aqsaaqeel
Copy link
Contributor

@aqsaaqeel aqsaaqeel commented Nov 22, 2023

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.

Copy link

vercel bot commented Nov 22, 2023

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

Name Status Preview Comments Updated (UTC)
code-magic ❌ Failed (Inspect) Nov 22, 2023 5:55pm

Copy link

@github-actions github-actions bot left a 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!

@aqsaaqeel aqsaaqeel changed the title added gradient border tailwind code feat: added gradient border tailwind code Nov 22, 2023
@@ -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');
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this caused an error because you aren't using it:
image

Comment on lines +409 to +414
<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>
Copy link
Owner

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

@Dun-sin Dun-sin closed this Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] tailwind code for gradient border isn't working
2 participants