We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 266d63b commit ff3f9f6Copy full SHA for ff3f9f6
src/plots/plots.js
@@ -1336,8 +1336,8 @@ plots.supplyLayoutGlobalDefaults = function(layoutIn, layoutOut, formatObj) {
1336
1337
coerce('modebar.orientation');
1338
coerce('modebar.bgcolor', Color.addOpacity(layoutOut.paper_bgcolor, 0.5));
1339
- coerce('modebar.color', Color.contrast(layoutOut.paper_bgcolor, 30, 30));
1340
- coerce('modebar.activecolor', Color.contrast(layoutOut.paper_bgcolor));
+ coerce('modebar.color', Color.contrast(Color.rgb(layoutOut.modebar.bgcolor), 30, 30));
+ coerce('modebar.activecolor', Color.contrast(Color.rgb(layoutOut.modebar.bgcolor)));
1341
1342
Registry.getComponentMethod(
1343
'calendars',
0 commit comments