Skip to content

Commit 54d1253

Browse files
Add role="toolbar" to enhance accessibility semantics
1 parent b560368 commit 54d1253

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/modebar/modebar.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ proto.update = function(graphInfo, buttons) {
4545
this.element.setAttribute('id', modeBarId);
4646
this._uid = modeBarId;
4747

48+
this.element.setAttribute('role', 'toolbar');
49+
4850
this.element.className = 'modebar';
4951
if(context.displayModeBar === 'hover') this.element.className += ' modebar--hover ease-bg';
5052

0 commit comments

Comments
 (0)