@@ -57,15 +57,15 @@ proto.update = function(graphInfo, buttons) {
57
57
}
58
58
else this . element . className = 'modebar' ;
59
59
60
- if ( fullLayout . modeBarStyle . orientation === 'v' ) {
60
+ if ( fullLayout . modebar . orientation === 'v' ) {
61
61
this . element . className += ' vertical' ;
62
62
buttons = buttons . reverse ( ) ;
63
63
}
64
64
65
- Lib . addRelatedStyleRule ( modeBarId , '#' + modeBarId , 'background-color: ' + fullLayout . modeBarStyle . bgcolor ) ;
66
- Lib . addRelatedStyleRule ( modeBarId , '#' + modeBarId + ' .modebar-btn .icon path' , 'fill: ' + fullLayout . modeBarStyle . iconColor ) ;
67
- Lib . addRelatedStyleRule ( modeBarId , '#' + modeBarId + ' .modebar-btn:hover .icon path' , 'fill: ' + fullLayout . modeBarStyle . activeIconColor ) ;
68
- Lib . addRelatedStyleRule ( modeBarId , '#' + modeBarId + ' .modebar-btn.active .icon path' , 'fill: ' + fullLayout . modeBarStyle . activeIconColor ) ;
65
+ Lib . addRelatedStyleRule ( modeBarId , '#' + modeBarId , 'background-color: ' + fullLayout . modebar . bgcolor ) ;
66
+ Lib . addRelatedStyleRule ( modeBarId , '#' + modeBarId + ' .modebar-btn .icon path' , 'fill: ' + fullLayout . modebar . color ) ;
67
+ Lib . addRelatedStyleRule ( modeBarId , '#' + modeBarId + ' .modebar-btn:hover .icon path' , 'fill: ' + fullLayout . modebar . activecolor ) ;
68
+ Lib . addRelatedStyleRule ( modeBarId , '#' + modeBarId + ' .modebar-btn.active .icon path' , 'fill: ' + fullLayout . modebar . activecolor ) ;
69
69
70
70
// if buttons or logo have changed, redraw modebar interior
71
71
var needsNewButtons = ! this . hasButtons ( buttons ) ;
@@ -80,7 +80,7 @@ proto.update = function(graphInfo, buttons) {
80
80
this . updateButtons ( buttons ) ;
81
81
82
82
if ( context . displaylogo ) {
83
- if ( fullLayout . modeBarStyle . orientation === 'v' ) {
83
+ if ( fullLayout . modebar . orientation === 'v' ) {
84
84
this . element . prepend ( this . getLogo ( ) ) ;
85
85
} else {
86
86
this . element . appendChild ( this . getLogo ( ) ) ;
0 commit comments