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

[JIT] !important modifier not applied to responsive variants #5313

Closed
leevigraham opened this issue Aug 27, 2021 · 2 comments · Fixed by #4854
Closed

[JIT] !important modifier not applied to responsive variants #5313

leevigraham opened this issue Aug 27, 2021 · 2 comments · Fixed by #4854
Assignees

Comments

@leevigraham
Copy link

leevigraham commented Aug 27, 2021

What version of Tailwind CSS are you using?

2.2.8

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

webpack 5.42.1

What version of Node.js are you using?

v12.22.4

What browser are you using?

Chrome, Firefox, Safari

What operating system are you using?

macOS

Reproduction repository

Play Repo: https://play.tailwindcss.com/Uk7nku1LuZ?file=css

Describe your issue

Similar to #4823 !important modifiers are not applied to responsive variants

<div class="foo"></div>
  .foo {
    @apply !bg-red-500 md:!block h-4;
  }

output:

  .foo {
    height: 1rem;
    --tw-bg-opacity: 1 !important;
    background-color: rgba(239, 68, 68, var(--tw-bg-opacity)) !important
}
@media (min-width: 768px) {
    .foo {
        display: block
    }
}
@RobinMalfait
Copy link
Contributor

Hey! Thank you for your bug report!
Much appreciated! 🙏

This has been fixed and will be available in the next release.

@leevigraham
Copy link
Author

Thanks @RobinMalfait

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