abishekatp / stylers

Fully compile time scoped CSS for Leptos components
MIT License
139 stars 13 forks source link

Does not work with SVG properties #37

Closed svieujot closed 1 year ago

svieujot commented 1 year ago

The properties in https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute need to be added to the file stylers/src/style/css_style_declar.rs in ALL_PROPERTIES to prevent errors with SVG properties.

svieujot commented 1 year ago

Also the SVG tags need to be added.

For example the following declaration makes the macro panic:

div polygon {
    fill: red;
}
abishekatp commented 1 year ago

Hi, @svieujot Thank you reporting bug and fixing it. I will merge and release new version today for this.

abishekatp commented 1 year ago

Also the SVG tags need to be added.

For example the following declaration makes the macro panic:

div polygon {
    fill: red;
}

is this problem still persists after the above fix?

svieujot commented 1 year ago

Also the SVG tags need to be added. For example the following declaration makes the macro panic:

div polygon {
    fill: red;
}

is this problem still persists after the above fix?

No this is actually not a direct problem.

It is just that in most cases this rule needs to be written as div :deep(polygon) {....