plotly.js icon indicating copy to clipboard operation
plotly.js copied to clipboard

[BUG]: Custom SVG images don't render on modebar correctly

Open DanielTOsborne opened this issue 1 month ago • 2 comments

Description

SVG images with multiple paths used as modebar icon don't color correctly since 3.0.0. I noticed the "fill" style is only set on the initial path element, not all of them.

Screenshots/Video

"SVG" image Image

Image

Steps to reproduce

https://jsfiddle.net/m1x7unsf/1/

Notes

It works fine up through 2.35.3, breaks in 3.0.0. I believe the cause is 46ea43c1a155cc8981919840f8851b31cb938d13.

DanielTOsborne avatar Dec 09 '25 23:12 DanielTOsborne

A PR for this fix should add a test to prevent future regressions.

ndrezn avatar Dec 10 '25 16:12 ndrezn

We're treating this as low-priority for now, but may pick it up in the future if we have more bandwidth. We'd welcome a PR addressing this fix and recognize that strict CSP may have limited use.

ndrezn avatar Dec 10 '25 17:12 ndrezn