Hi !
I have an svg that takes variables as inline style as follow:
<svg
style={{ height: size, width: size, fill: iconColor }}
/>
where each variable end up being a CSS variable.
The fill variable is well taken into consideration by jest-preview, but not the width/height 🤔 . When I hardcode values for height/width, it works.
I've checked and the CSS variable exist in the preview and follow the exact same structure than for fill.
Screenshots
Reproduce
https://stackblitz.com/edit/jest-preview-yegte5?file=src%2FApp.tsx
The CSS variables on the test div are not taken into account
Hi !
I have an svg that takes variables as inline style as follow:
where each variable end up being a CSS variable.
The fill variable is well taken into consideration by
jest-preview, but not the width/height 🤔 . When I hardcode values for height/width, it works.I've checked and the CSS variable exist in the preview and follow the exact same structure than for fill.
Screenshots
Reproduce
https://stackblitz.com/edit/jest-preview-yegte5?file=src%2FApp.tsx
The CSS variables on the test div are not taken into account