Closed HawkSK closed 1 year ago
Probably other attributes are ignored too
Thanks for the issue. This is caused by change in the way how SVG node is cloned:
iron-iconset-svg
inserts the whole node while also removing it id
, vaadin-iconset-svg
uses innerHTML
, so only the content is inserted.This is just an oversight that can be fixed by changing the corresponding line:
- result = svg`${unsafeSVG(content.innerHTML)}`;
+ result = svg`${unsafeSVG(content.outerHTML)}`;
Description
When
fill="none"
is defined on svg insidevaadin-iconset
the resulting vaadin-icon > svg does NOT contain this attribute, resulting in an unwanted background colour based on currentColor.Similar issue of vaadin-iconset attribute being ignored : https://github.com/vaadin/web-components/issues/3992
Expected outcome
<svg>
insidevaadin-icon
should havefill="none"
Minimal reproducible example
Environment
Vaadin version(s): 23.1.1 OS: Win 10
Browsers
No response