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 Engine/Compiler creates a selector for each property #7883

Closed
michaelbeers opened this issue Mar 18, 2022 · 1 comment
Closed

JIT Engine/Compiler creates a selector for each property #7883

michaelbeers opened this issue Mar 18, 2022 · 1 comment
Assignees

Comments

@michaelbeers
Copy link

What version of Tailwind CSS are you using?

v3.0.23

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

postcss 6.4.8, postcss-import 14.0.2, @wordpress/scripts 22.2.1 (unsure which webpack version)

What version of Node.js are you using?

node v16.7.0, npm v8.5.0

What browser are you using?

N/A

What operating system are you using?

MacOS

Reproduction

After using the following syntax to make an better experience for touch devices the compiler will generate the following CSS:

Src syntax

@media(hover:none) {
  .site .nav--toggle-sub .menu-item--has-toggle:not(.menu-item--toggled-on) .dropdown-nav-special-toggle {
    @apply right-0 mr-0 #{!important};
    @apply left-0 w-full;

    pointer-events: all;
  }

  .site .nav--toggle-sub .menu-item--has-toggle:not(.menu-item--toggled-on) > a {
    @apply pointer-events-none;
  }
}

Compiled syntax:

@media (hover: none) {
  .site .nav--toggle-sub .menu-item--has-toggle:not(.menu-item--toggled-on) .dropdown-nav-special-toggle {
    right: 0px !important;
  }
  .site .nav--toggle-sub .menu-item--has-toggle:not(.menu-item--toggled-on) .dropdown-nav-special-toggle {
    margin-right: 0px !important;
  }
  .site .nav--toggle-sub .menu-item--has-toggle:not(.menu-item--toggled-on) .dropdown-nav-special-toggle {
    left: 0px;
  }
  .site .nav--toggle-sub .menu-item--has-toggle:not(.menu-item--toggled-on) .dropdown-nav-special-toggle {
    width: 100%;
  }
  .site .nav--toggle-sub .menu-item--has-toggle:not(.menu-item--toggled-on) .dropdown-nav-special-toggle {
    pointer-events: all;
  }

Describe your issue

See reproduction

@michaelbeers michaelbeers changed the title JIT Engine/Compiler creates a selector JIT Engine/Compiler creates a selector for each property Mar 18, 2022
@thecrypticace thecrypticace self-assigned this Apr 4, 2022
@thecrypticace
Copy link
Contributor

thecrypticace commented Apr 4, 2022

Thanks for the report! This was resolved in #7565 but is not yet part of a tagged release. In the mean time you can use our insiders build by running 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

No branches or pull requests

2 participants