Skip to content

Commit 97f25e2

Browse files
committed
fix to change modebar style on relayout
1 parent 31d6fb2 commit 97f25e2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/modebar/modebar.js

+1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ proto.update = function(graphInfo, buttons) {
6262
buttons = buttons.reverse();
6363
}
6464

65+
Lib.deleteRelatedStyleRule(modeBarId);
6566
Lib.addRelatedStyleRule(modeBarId, '#' + modeBarId, 'background-color: ' + fullLayout.modebar.bgcolor);
6667
Lib.addRelatedStyleRule(modeBarId, '#' + modeBarId + ' .modebar-btn .icon path', 'fill: ' + fullLayout.modebar.color);
6768
Lib.addRelatedStyleRule(modeBarId, '#' + modeBarId + ' .modebar-btn:hover .icon path', 'fill: ' + fullLayout.modebar.activecolor);

0 commit comments

Comments
 (0)