File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -150,13 +150,16 @@ proto.createButton = function(config) {
150
150
button . setAttribute ( 'tabindex' , '0' ) ;
151
151
button . setAttribute ( 'rel' , 'tooltip' ) ;
152
152
button . className = 'modebar-btn' ;
153
-
153
+
154
154
var title = config . title ;
155
155
if ( title === undefined ) title = config . name ;
156
156
// for localization: allow title to be a callable that takes gd as arg
157
157
else if ( typeof title === 'function' ) title = title ( this . graphInfo ) ;
158
158
159
- if ( title || title === 0 ) button . setAttribute ( 'data-title' , title ) ;
159
+ if ( title || title === 0 ) {
160
+ button . setAttribute ( 'data-title' , title )
161
+ button . setAttribute ( "aria-label" , title )
162
+ } ;
160
163
161
164
if ( config . attr !== undefined ) button . setAttribute ( 'data-attr' , config . attr ) ;
162
165
You can’t perform that action at this time.
0 commit comments