Skip to content

Commit 318530e

Browse files
Add tabindex="0" to buttons
1 parent 54d1253 commit 318530e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/components/modebar/modebar.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,8 @@ proto.update = function(graphInfo, buttons) {
4343
var modeBarId = 'modebar-' + fullLayout._uid;
4444

4545
this.element.setAttribute('id', modeBarId);
46-
this._uid = modeBarId;
47-
4846
this.element.setAttribute('role', 'toolbar');
49-
47+
this._uid = modeBarId;
5048
this.element.className = 'modebar';
5149
if(context.displayModeBar === 'hover') this.element.className += ' modebar--hover ease-bg';
5250

@@ -149,6 +147,7 @@ proto.createButton = function(config) {
149147
var _this = this;
150148
var button = document.createElement('a');
151149

150+
button.setAttribute('tabindex', '0');
152151
button.setAttribute('rel', 'tooltip');
153152
button.className = 'modebar-btn';
154153

0 commit comments

Comments
 (0)