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

Wrong behaviour since version 5.0.2 #107

Closed
jonnitto opened this issue Dec 21, 2020 · 2 comments
Closed

Wrong behaviour since version 5.0.2 #107

jonnitto opened this issue Dec 21, 2020 · 2 comments

Comments

@jonnitto
Copy link

I use TailwindCSS. With version 5.0.1 I got with this code

.apply {
  div {
    @apply fixed lg:static;
  }
}

.screen {
  @apply fixed;

  div {
    @screen lg {
      @apply static;
    }
  }
}

this CSS:

.apply div {
    position: fixed;
}

.screen {
  position: fixed;
}

@media (min-width: 1024px) {
  .apply div {
    position: static;
  }

  .screen div {
    position: static
  }
}

but since 5.0.2 and up, I'll get this CSS:

.apply div {
  position: fixed;
}

.screen {
  position: fixed
}

@media (min-width: 1024px) {

  .apply {
    div {
      position: static;
    }
  }

  div {
    position: static
  }
}
jonnitto added a commit to CarbonPackages/Carbon.Rollup that referenced this issue Dec 21, 2020
@ai
Copy link
Member

ai commented Dec 21, 2020

Duplicate #106

Short answer: we do not have resources for now. You can send PR or help us on OpenCollective.

@ai ai closed this as completed Dec 21, 2020
@jonnitto
Copy link
Author

jonnitto commented Jan 4, 2021

The issue was because of this issue here: yunusga/postcss-sort-media-queries#31

But with release 3.0, this is fixed: https://github.com/yunusga/postcss-sort-media-queries/releases/tag/v3.0.0

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