Skip to content
This repository has been archived by the owner on May 14, 2021. It is now read-only.

Nested css blocks inside of styled-components creates invalid code #292

Closed
glentakahashi opened this issue Feb 4, 2020 · 1 comment
Closed

Comments

@glentakahashi
Copy link

glentakahashi commented Feb 4, 2020

Environment

"stylelint": "^13.0.0",
"stylelint-config-standard": "^19.0.0",
"stylelint-config-styled-components": "^0.1.1",
"stylelint-order": "^4.0.0",

Reproduction

const MyDiv = styled.div<{ color: string }>`
  height: 20px;
  ${({ color }) =>
    css`
      background-color: ${color};
    `}
`;

Steps to reproduce

Expected Behavior

const MyDiv = styled.div<{ color: string }>`
  height: 20px;
  ${({ color }) =>
    css`
      background-color: ${color};
    `}
`;

Actual Behavior

const MyDiv = styled.div<{ color: string }>`
  height: 20px;
  ${({ color }) =>
    css`
      background-color: ${color};
    `}

      background-color: ${color};
    `}
`;
@glentakahashi
Copy link
Author

Nevermind duplicate of stylelint/stylelint#4119

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant