postcss-modules icon indicating copy to clipboard operation
postcss-modules copied to clipboard

Nesting support for :global syntax?

Open hassoubeat opened this issue 1 year ago • 1 comments

Hello!

Write the code as shown below, I want .sample and .samle2 to be global, but it doesn't work.

:global {
  .sample {
     …
  }

  .sample2 {
     …
  }
}

Is this syntax not supported?

hassoubeat avatar Nov 13 '24 07:11 hassoubeat

I think most tooling besides Webpack doesn't support that syntax. :global(.sample) {} works instead.

samhh avatar Dec 17 '24 12:12 samhh