You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SVG icons from Geotrek-admin are completely loaded in the app and sometimes there is a style tag with selectors to style the SVG (often when the SVG was exported from Illustrator).
The problem arises when there are 2 (or more) SVGs with the same selector label but different property values.
SVG icons from Geotrek-admin are completely loaded in the app and sometimes there is a style tag with selectors to style the SVG (often when the SVG was exported from Illustrator).
The problem arises when there are 2 (or more) SVGs with the same selector label but different property values.
For example :
Because of the cascading of CSS, the both SVG should be paint in
red
.One solution would be to embed the properties in each SVG node like this:
Perhaps this optimization should be done once when the icon is uploaded to Geotrek-admin? (maybe related to GeotrekCE/Geotrek-admin#3359)
The text was updated successfully, but these errors were encountered: