Closed volos-st closed 4 years ago
Hello @volos-st !
I see that you have a red line in your code example before @media
, is that an error from some linter?
Could you also tell does this happen only inside styled components or you can observe the same behavior in plain *.css
?
Thanks!
Hy @vladsholokhov
yes, it's an error from eslint, but I can reproduce the error with disabled eslint.
It does only inside styled-components. All other css files (.css
, and especially .scss
) works as expected.
I have investigated deeply this problem and found how you can reproduce it
const Div = styled.div`
width: 1000px;
.App-header {
background-color: red;
@media (max-width: 100px) {
background-color: green;
}
@media (max-width: ${breakpoints.mobile}px) {
background-color: green;
}
`;
you must use tabs as indents symbols inside template string
@media (max-width: ${breakpoints.mobile}px) {...
block and you will have this problem${...}
all works as expectedThank you very much for the details! Reproduced.
Build #WS-202.4884, built on May 28, 2020
Non-Bundled Plugins: com.deadlock.scsyntax (1.1.2)
1.1.2
Problem description:
When you copy-paste some code, it show with additional symbols
\t\t\t\t
. Please check gif file with problem. How I can fix it, thank you.