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 ebb7b12 commit 8748342Copy full SHA for 8748342
1 file changed
src/components/modebar/modebar.js
@@ -150,13 +150,16 @@ proto.createButton = function(config) {
150
button.setAttribute('tabindex', '0');
151
button.setAttribute('rel', 'tooltip');
152
button.className = 'modebar-btn';
153
-
+
154
var title = config.title;
155
if(title === undefined) title = config.name;
156
// for localization: allow title to be a callable that takes gd as arg
157
else if(typeof title === 'function') title = title(this.graphInfo);
158
159
- if(title || title === 0) button.setAttribute('data-title', title);
+ if(title || title === 0) {
160
+ button.setAttribute('data-title', title)
161
+ button.setAttribute("aria-label", title)
162
+ };
163
164
if(config.attr !== undefined) button.setAttribute('data-attr', config.attr);
165
0 commit comments