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

CSS Variables defined using an interpolated name rejected #63

Open
lee-chase opened this issue Jul 6, 2022 · 0 comments
Open

CSS Variables defined using an interpolated name rejected #63

lee-chase opened this issue Jul 6, 2022 · 0 comments

Comments

@lee-chase
Copy link
Member

May need to raise an issue against stylelint/postcss-scss as this fails.

NOTE: This does not even get as far as calling checkRule!

    {
      // TODO: fix this - fails to even get into
      code: "$block: 'block'; :root {--#{$block}__value-accept: $layer-01;} .foo { color: var(--#{$block}__value-accept); }",
      description:
        "Accept --#{block}-variable declared before use with Carbon theme tokens."
    },

This works but cheats on the custom property declaration.

    {
      code: "$block: 'block'; :root {--block-value-accept: $layer-01;} .foo { color: var(--#{$block}-value-accept); }",
      description:
        "Accept --#{block}-variable declared before use with Carbon theme tokens. Cheats on custom property declaration"
    },
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