Closed danieldelcore closed 4 years ago
Having an instance of <Grid> and <Grid column={2}> on the page at the same time does not remount the class to the head of the document. Could be something to do with the hashing logic.
<Grid>
<Grid column={2}>
/** @jsx jsx */ import { FC, ReactNode } from 'react'; import { css, jsx } from '@trousers/core'; export const Grid = ({ columns = 3, children }) => ( <div css={css` display: grid; grid-template-columns: repeat(${columns}, 1fr); gap: 1.5rem; width: 100%; `} > {children} </div> );
Looks like this is because we hash the css before the expressions are evaluated...
Having an instance of
<Grid>
and<Grid column={2}>
on the page at the same time does not remount the class to the head of the document. Could be something to do with the hashing logic.