Commit graph

2 commits

Author SHA1 Message Date
hashworks
9529f9cfe2
Add warning that setting ClassName will drop all other inline styles 2018-09-24 22:55:21 +02:00
hashworks
0739404bd6
Add ability to set CSS classes instead of inline styles
This allows to set a `ClassName` field in `Style` structs. Setting this
field to anything but "" will cause all other styles to be ignored. The
element will then have a `class=` tag instead with the corresponding name.

Possible reasons to use this:
* Including multiple SVGs on the same webside, using the same styles
* Desire to use strict CSP headers
2018-09-24 22:46:24 +02:00