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

@apply method is invalid after upgrade to 3.3.1 #10937

Closed
scarqin opened this issue Apr 4, 2023 · 1 comment · Fixed by #10943
Closed

@apply method is invalid after upgrade to 3.3.1 #10937

scarqin opened this issue Apr 4, 2023 · 1 comment · Fixed by #10943
Assignees

Comments

@scarqin
Copy link

scarqin commented Apr 4, 2023

What version of Tailwind CSS are you using?

v3.3.1

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

webpack 5.77.0

What version of Node.js are you using?

v16.16.0

What browser are you using?
Chrome

What operating system are you using?

macOS

Reproduction URL
https://github.com/Postcatlab/postcat/blob/3411792892633e5c53d4e86466a0fd52f4599f4a/src/browser/src/app/pages/workspace/overview/project-list/project-list.component.scss

Describe your issue
My previous version was 3.2.4 After upgrading to the latest version of 3.3.1, @apply is invalid.

  • Angular 15.2.5
:host {
  .operate-btn-list {
    display: none;
  }

  .ant-card {
    @include hover-item;
  }

  ::ng-deep {
    .ant-list-items {
      .ant-list-item {
        @apply px-[10px] rounded-[3px];
        @include hover-item;

        border: 1px solid transparent;
      }
    }
  }
}

previous display

image

current display

@thecrypticace
Copy link
Contributor

thecrypticace commented Apr 4, 2023

Hey! Thanks for reporting this. The kicker here is that Angular is technically using invalid syntax for this and a bug-fix resulted in it getting moved to the end of the selector.

However, we have a way to specify exceptions which I've done in #10943. This will be available in v3.3.2 (likely later this week).

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