Skip to content

Commit

Permalink
Add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Sep 25, 2023
1 parent 854d310 commit c4dce6c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions packages/styled-jsx/transform/tests/fixture/next-55679/input.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { AppProps } from "next/app";

const someVar = "--var-1";

export default function App({ Component, pageProps }: AppProps) {
return (
<>
<style jsx global>{`
:root {
${someVar}: red;
background-color: var(${someVar});
}
`}</style>
<Component {...pageProps} />
</>
);
}

0 comments on commit c4dce6c

Please sign in to comment.