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

Nested CSS sometimes doesn't highlight as expected #397

Open
smlombardi opened this issue Jun 2, 2024 · 2 comments
Open

Nested CSS sometimes doesn't highlight as expected #397

smlombardi opened this issue Jun 2, 2024 · 2 comments

Comments

@smlombardi
Copy link

srcassetsmain css — primevue-tests_20240602 _113138@2x

I am using nested CSS and sometimes the coloring work and sometimes the above happens.

here is the code:

span[data-pc-section='current'] {
  @apply mr-32;
}
[data-pc-group-section='pagedropdown'] {
  @apply h-8 p-1 text-sm;
  [data-pc-section='trigger'] {
    @apply w-4 text-sm;
  }
  [data-pc-section='input'] {
    transform: translateY(-8px);
  }
}
@uncenter
Copy link
Member

uncenter commented Jun 2, 2024

That's an issue with nested CSS in VS Code in general. See below how the same issue is present with the default VS Code dark theme:

Screenshot 2024-06-02 at 11 46 20 (Code)

If you instruct VS Code to regard the file as SCSS (or change the extension to .scss) the issue disappears.

Screenshot 2024-06-02 at 11 48 04 (Code)

@uncenter
Copy link
Member

uncenter commented Jun 2, 2024

Probably related to the upstream issue microsoft/vscode-css#9?

@sgoudham sgoudham changed the title Nested CSS coloring issues Nested CSS sometimes doesn't highlight as expected Nov 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants