Closed andreruffert closed 3 years ago
This PR adds a filter to remove false props to prevent generating undefined style properties.
undefined
Example props { fontSize: '16px', fontFamily: undefined }
{ fontSize: '16px', fontFamily: undefined }
The above props would generate the following styles:
.iRGQtx { font-size: 16px; font-family: undefined; }
The new feature here is filtering false props before generating and injecting the styles. The new styles now look like this:
.iRGQtx { font-size: 16px; }
Related: https://github.com/styled-components/vue-styled-components/pull/102
@liqueflies any opinion on that?
can this be merged in the next release?
Solved merging #111
This PR adds a filter to remove false props to prevent generating
undefined
style properties.Example props
{ fontSize: '16px', fontFamily: undefined }
The above props would generate the following styles:
The new feature here is filtering false props before generating and injecting the styles. The new styles now look like this:
Related: https://github.com/styled-components/vue-styled-components/pull/102