File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Original file line number Diff line number Diff line change @@ -1336,8 +1336,9 @@ plots.supplyLayoutGlobalDefaults = function(layoutIn, layoutOut, formatObj) {
1336
1336
1337
1337
coerce ( 'modebar.orientation' ) ;
1338
1338
coerce ( 'modebar.bgcolor' , Color . addOpacity ( layoutOut . paper_bgcolor , 0.5 ) ) ;
1339
- coerce ( 'modebar.color' , Color . contrast ( Color . rgb ( layoutOut . modebar . bgcolor ) , 30 , 30 ) ) ;
1340
- coerce ( 'modebar.activecolor' , Color . contrast ( Color . rgb ( layoutOut . modebar . bgcolor ) ) ) ;
1339
+ var modebarDefaultColor = Color . contrast ( Color . rgb ( layoutOut . modebar . bgcolor ) ) ;
1340
+ coerce ( 'modebar.color' , Color . addOpacity ( modebarDefaultColor , 0.3 ) ) ;
1341
+ coerce ( 'modebar.activecolor' , Color . addOpacity ( modebarDefaultColor , 0.7 ) ) ;
1341
1342
1342
1343
Registry . getComponentMethod (
1343
1344
'calendars' ,
You can’t perform that action at this time.
0 commit comments