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

bg-gradient auto-transparent calculation doesn't work when parent element uses two colour gradient #8488

Closed
evoactivity opened this issue Jun 1, 2022 · 1 comment · Fixed by #8489

Comments

@evoactivity
Copy link

evoactivity commented Jun 1, 2022

What version of Tailwind CSS are you using?

v3.0.24

What build tool (or framework if it abstracts the build tool) are you using?

postcss-loader@7.0.0 webpack@5.72.1
Also through cdn package <script src="https://cdn.tailwindcss.com"></script>

What version of Node.js are you using?

v16.15.0

What browser are you using?

Firefox, Chrome, Safari
All latest

What operating system are you using?

macOS

Reproduction URL

https://play.tailwindcss.com/w4cImWRzrB

Describe your issue

When creating a transparent gradient the guidance is to not include to-transparent to let tailwind calculate the correct transparent to color to avoid a safari bug. If this happens on a child element where the parent element uses a gradient background with two colors defined then the transparent color is set to the parents to color.

@adamwathan
Copy link
Member

Good catch! Fixed here: #8489

Will be in v3.1 coming in a couple days, but also available on our insiders channel in a few minutes:

npm install tailwindcss@insiders

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 a pull request may close this issue.

2 participants