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

:global() doesn't work with nested style #1392

Closed
nihgwu opened this issue Jan 30, 2024 · 1 comment
Closed

:global() doesn't work with nested style #1392

nihgwu opened this issue Jan 30, 2024 · 1 comment
Labels
bug report 🦗 Issue is probably a bug, but it needs to be checked bundler: webpack 📦 Issue is related to webpack bundler needs: complete repro 🖥️ Issue need to have complete repro provided

Comments

@nihgwu
Copy link

nihgwu commented Jan 30, 2024

Environment

Linaria version: 6
Bundler: Any bundler, tried cli/vite/esbuild

Description

Same issue as here, created a new one as that ticket has been closed

import { css } from '@linaria/core'

export const GlobalStyle = css`
  :global() {
    [data-scrollbar='custom'] {
      isolation: isolate;
      overflow: auto;
      scrollbar-width: none;

      &::-webkit-scrollbar {
        display: none;
      }
    }
  }
`
Failed to match :global() selector in "&
                                        ::-webkit-scrollbar". Please report a bug if it happens.
  Plugin: wyw-in-js

Reproducible Demo

@nihgwu nihgwu added bug report 🦗 Issue is probably a bug, but it needs to be checked needs: complete repro 🖥️ Issue need to have complete repro provided needs: triage 🏷 Issue needs to be checked and prioritized labels Jan 30, 2024
@github-actions github-actions bot added bundler: webpack 📦 Issue is related to webpack bundler and removed needs: triage 🏷 Issue needs to be checked and prioritized labels Jan 30, 2024
@Anber
Copy link
Collaborator

Anber commented Feb 8, 2024

Hi @nihgwu!

Fixed in wyw-in-js@0.4.0 and linaria@6.1.0

@Anber Anber closed this as completed Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report 🦗 Issue is probably a bug, but it needs to be checked bundler: webpack 📦 Issue is related to webpack bundler needs: complete repro 🖥️ Issue need to have complete repro provided
Projects
None yet
Development

No branches or pull requests

2 participants