linaria icon indicating copy to clipboard operation
linaria copied to clipboard

No value no css

Open zomem opened this issue 2 years ago • 2 comments

const Line = styled(div)`
  background-color: ${props => props.bgColor};
  margin-left: ${props => props.margin};
`

if bgColor='#fff' and margin=''

{
    --b9s1f2v-1: #fff;
}

.b9s1f2v{
  background-color: var(--b9s1f2v-1);
}

Just like this, margin has no value, and the generated css has no margin-left. How to implement it.🤔

zomem avatar Jul 14 '23 09:07 zomem

I am afraid I don't understand the problem here. What is it you are trying to achieve/prevent? @zomem

espretto avatar Apr 02 '25 19:04 espretto

Are you still trying to solve this issue @zomem ?

espretto avatar Jun 16 '25 07:06 espretto