Skip to content

Commit 06d3d1f

Browse files
Add style for focus in modebar
1 parent a2fa286 commit 06d3d1f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/components/modebar/modebar.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ proto.update = function(graphInfo, buttons) {
4444

4545
this.element.setAttribute('id', modeBarId);
4646
this.element.setAttribute('role', 'toolbar');
47-
this.element.setAttribute('tabindex', '0');
4847

4948
this._uid = modeBarId;
5049
this.element.className = 'modebar modebar--custom';

src/css/_modebar.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
opacity: 1;
1818
}
1919

20+
&:focus-within .modebar--hover .modebar-group {
21+
opacity: 1;
22+
}
23+
2024
.modebar-group {
2125
float: left;
2226
display: inline-block;

0 commit comments

Comments
 (0)