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

Directives should ignore inline comments #3794

Closed
4 tasks done
pauliesnug opened this issue May 12, 2024 · 0 comments · Fixed by #3799
Closed
4 tasks done

Directives should ignore inline comments #3794

pauliesnug opened this issue May 12, 2024 · 0 comments · Fixed by #3799
Labels

Comments

@pauliesnug
Copy link

pauliesnug commented May 12, 2024

UnoCSS version

0.60.0

Describe the bug

Upon migrating to UnoCSS from Tailwind, we experienced an issue where a commented-out section (/* overflow-hidden */;) of an @apply directive was being applied, making the page unable to be scrollable.

Reproduction

Scrollable Page (without /* overflow-hidden */;)
Bug Reproduction (same code, with the commented out code)

System Info

Astro, but works on Playground
MacOS Latest
Firefox Latest

Validations

@antfu antfu changed the title unocss parser breaks scrolling with commented out @apply directive Directives should ignore inline comments May 12, 2024
@antfu antfu added enhancement New feature or request pr welcome labels May 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants