-
Notifications
You must be signed in to change notification settings - Fork 4
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
Call to action button has extra borders (Marketing: Landing Page Examples) #516
Comments
@kendalled Great catch! Turns out this is how transparent borders appear on top of gradient backgrounds in CSS (even outside of Tailwind CSS). Hmm…we'll have to think of a different way to style gradient buttons to have consistent box sizing with other buttons. I'll keep you updated on what we do! Thanks for reporting this. |
@davidluhr Thanks! Let me know if you figure out / push a solution. Love the work you guys have done so far. Also, I noticed your youtube video "Customizing your design system" is actually titled "Customizing you design system". Have a great week and go Tailwind! |
@kendalled Thanks for letting us know about the YouTube video title. Looks like it was fixed recently. |
Is this being worked on still? |
@kendalled Sorry for the delayed response. It took a while to find a fix, but the solution is to use I've actually added dedicated Currently, we are waiting for a few new features to be ready in Tailwind CSS so we can do a minor version release, at which point we will be able to incorporate this fix using the new utility classes. As a short-term workaround, you could manually add this class to your project: .bg-origin-border {
background-origin: border-box;
} Thanks again for reporting this; it helped us improve both Tailwind CSS and Tailwind UI! I'll let you know once the final fix is live. |
@kendalled Thanks again for all your patience with this issue! With the release of Tailwind CSS v2.2, we now are able to use the The corrected version should be live on the site shortly! |
What component (if applicable)
Describe the bug
The call to action button in the top right (gradient of indigo shades, says 'Sign up') has extra borders on the left and right. The left is a blueish color while the right has an indigo shade. Neither match the button and it appears to be a visual bug.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The gradient to clip to the edge of the button on both sides.
Screenshots
![Screen Shot 2021-03-03 at 2 08 54 PM](https://user-images.githubusercontent.com/22782727/109858605-020fe980-7c2a-11eb-8a61-2bb536265a66.png)
![Screen Shot 2021-03-03 at 2 09 32 PM](https://user-images.githubusercontent.com/22782727/109858675-1b189a80-7c2a-11eb-9526-91513babddea.png)
Browser/Device (if applicable)
Additional context
Hope this helps!
The text was updated successfully, but these errors were encountered: