Skip to content

Commit

Permalink
fix to change modebar style on relayout
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinerg committed Oct 4, 2018
1 parent 31d6fb2 commit 97f25e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/modebar/modebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ proto.update = function(graphInfo, buttons) {
buttons = buttons.reverse();
}

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

0 comments on commit 97f25e2

Please sign in to comment.