Why remove CSSProperties in 8.0?
tolg opened this issue · comments
tolg commented
CSSProperties is a vary handy type when coding some HTML element style, but I found that inferno 8.0 changed the style
property's type to any
. What's the consideration of this changing?
Sampo Kivistö commented
Yeah, I'm planning to add them back, but need to think how to get it done nicely.
React.CssProperties is based on this package: https://github.com/frenic/csstype
which types them like textAlign: 'middle',
in inferno that would be: text-align: 'middle',
or it could be given as style string
Sampo Kivistö commented
Oh it seems it supports types by hyphen https://github.com/frenic/csstype 🤩
Sampo Kivistö commented
This will be fixed in 8.0.3