Skip to content

Commit e557ee1

Browse files
Change "a" tag for "button" tag
1 parent 06d3d1f commit e557ee1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/components/modebar/modebar.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,9 @@ proto.createGroup = function() {
146146
*/
147147
proto.createButton = function(config) {
148148
var _this = this;
149-
var button = document.createElement('a');
149+
var button = document.createElement('button');
150150

151+
button.setAttribute('type', 'button');
151152
button.setAttribute('tabindex', '0');
152153
button.setAttribute('rel', 'tooltip');
153154
button.className = 'modebar-btn';

src/css/_modebar.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@
4040
cursor: pointer;
4141
line-height: normal;
4242
box-sizing: border-box;
43-
43+
border: none;
44+
background: transparent;
4445
svg {
4546
position: relative;
4647
top: 2px;

0 commit comments

Comments
 (0)