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

Allow direct nesting in root or @layer nodes #10229

Merged
merged 2 commits into from
Jan 3, 2023
Merged

Conversation

RobinMalfait
Copy link
Member

@RobinMalfait RobinMalfait commented Jan 3, 2023

This PR fixes a false positive issue where using nested css directly inside @layer nodes will show you a console warning, but this should be totally fine:

@layer tw-base, tw-components, tw-utilities;

@layer tw-base { @tailwind base }
@layer tw-components { @tailwind components }
@layer tw-utilities { @tailwind utilities }

Fixes: #10216

@RobinMalfait RobinMalfait changed the title Hide nesting warning in root or @layer nodes Allow direct nesting in root or @layer nodes Jan 3, 2023
@RobinMalfait RobinMalfait merged commit 2b885ef into master Jan 3, 2023
@RobinMalfait RobinMalfait deleted the fix/issue-10216 branch January 3, 2023 11:38
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 this pull request may close these issues.

Tailwind warns when using @tailwind within a native cascade layer
1 participant