Closed nihgwu closed 4 months ago
Linaria version: 6 Bundler: Any bundler, tried cli/vite/esbuild
Same issue as here, created a new one as that ticket has been closed
It's a clone of https://github.com/callstack/linaria/issues/1392, the bug is actually in wyw-in-js
wyw-in-js
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
My current workaround is transpile the nested style via stylis first
stylis
export const GlobalStyle = css` :global() { ${serialize(compile(cssText), stringify)} } `
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
It's a clone of https://github.com/callstack/linaria/issues/1392, the bug is actually in
wyw-in-js
Reproducible Demo