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

Support for :global() rules #4

Open
turadg opened this issue Mar 26, 2021 · 0 comments
Open

Support for :global() rules #4

turadg opened this issue Mar 26, 2021 · 0 comments

Comments

@turadg
Copy link

turadg commented Mar 26, 2021

Something like this within a component:

const globals = css`
  :global() {
    html {
      font-size: large;
    }
  }
`;
errors with:

Error: Syntax error: Selector "html" is not pure (pure selectors must contain at least one local class or id)


It works okay if it's in an `_app.tsx` file.

Known issue in https://github.com/callstack/linaria/issues/589#issuecomment-730219118

Documenting here for anyone coming to this project.
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

No branches or pull requests

1 participant