Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

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

Open
#7,669 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
46/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript

Research direction

Reproduce the issue with the linked JSFiddle and compare the modebar SVG behavior with version 2.35.3, then inspect commit 46ea43c1a155cc8981919840f8851b31cb938d13. Done means custom SVG icons with multiple paths receive consistent coloring in version 3.0.0 and later.

Written by the indexing model from the issue text.

Description

bug regression
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.

Dominant language
JavaScript
Stars
18.3k
Forks
2k
Avg merge
1d 21h
Merged PRs (30d)
21

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from plotly/plotly.js

All issues in plotly/plotly.js

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.