Skip to content

Commit cfa4740

Browse files
committed
Merge branch 'CHedgren-fixes'
2 parents 3b0ced8 + 4f805ea commit cfa4740

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

css/Token.css

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@
66
color: #1f8dd6;
77
display: inline-block;
88
line-height: 1em;
9+
margin: 0 3px 3px 0;
910
padding: 4px 7px;
1011
position: relative;
1112
}
12-
.bootstrap-tokenizer .token:focus,
1313
.bootstrap-tokenizer .token-removeable {
14+
cursor: pointer;
1415
padding-right: 21px;
1516
}
1617
.bootstrap-tokenizer .token-selected {
@@ -20,10 +21,6 @@
2021
text-decoration: none;
2122
}
2223

23-
.bootstrap-tokenizer .token {
24-
margin: 0 3px 3px 0;
25-
}
26-
2724
.bootstrap-tokenizer .token .close-button {
2825
bottom: 0;
2926
padding: 3px 7px;

src/Token.react.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const Token = React.createClass({
4040

4141
_renderRemoveableToken() {
4242
return (
43-
<button
43+
<div
4444
className={cx('token', 'token-removeable', {
4545
'token-selected': this.state.selected,
4646
}, this.props.className)}
@@ -50,10 +50,13 @@ const Token = React.createClass({
5050
onKeyDown={this._handleKeyDown}
5151
tabIndex={0}>
5252
{this.props.children}
53-
<span className="close-button" onClick={this._handleRemove}>
53+
<span
54+
className="close-button"
55+
onClick={this._handleRemove}
56+
role="button">
5457
&times;
5558
</span>
56-
</button>
59+
</div>
5760
);
5861
},
5962

0 commit comments

Comments
 (0)