Skip to content
Compare
Choose a tag to compare
@github-actions github-actions released this 19 May 13:09
9a88724

Patch Changes

  • e2df2ef: Update CSS Function to Parsing Strings as Raw. Doing the following would previously result in the \ being dropped from the final css produced. This is fixed.

    export default css`
      .Navbar {
        &.\@root {
          font-size: 12px;
        }
      }
    `;

    Examples of when an extra escape is needed:

    // dont, as '\' will be dropped
    const rootTag = '.@root';
    const rootTag = `.\@root`;
    
    // do
    const rootTag = '.\\@root';
    const rootTag = `.\\@root`;
    const rootTag = String.raw`.\@root`;
    
    // also works
    import { css } from '@stylebucket/css';
    const rootTag = css`.\@root`;