File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 6
6
color : # 1f8dd6 ;
7
7
display : inline-block;
8
8
line-height : 1em ;
9
+ margin : 0 3px 3px 0 ;
9
10
padding : 4px 7px ;
10
11
position : relative;
11
12
}
12
- .bootstrap-tokenizer .token : focus ,
13
13
.bootstrap-tokenizer .token-removeable {
14
+ cursor : pointer;
14
15
padding-right : 21px ;
15
16
}
16
17
.bootstrap-tokenizer .token-selected {
20
21
text-decoration : none;
21
22
}
22
23
23
- .bootstrap-tokenizer .token {
24
- margin : 0 3px 3px 0 ;
25
- }
26
-
27
24
.bootstrap-tokenizer .token .close-button {
28
25
bottom : 0 ;
29
26
padding : 3px 7px ;
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ const Token = React.createClass({
40
40
41
41
_renderRemoveableToken ( ) {
42
42
return (
43
- < button
43
+ < div
44
44
className = { cx ( 'token' , 'token-removeable' , {
45
45
'token-selected' : this . state . selected ,
46
46
} , this . props . className ) }
@@ -50,10 +50,13 @@ const Token = React.createClass({
50
50
onKeyDown = { this . _handleKeyDown }
51
51
tabIndex = { 0 } >
52
52
{ this . props . children }
53
- < span className = "close-button" onClick = { this . _handleRemove } >
53
+ < span
54
+ className = "close-button"
55
+ onClick = { this . _handleRemove }
56
+ role = "button" >
54
57
×
55
58
</ span >
56
- </ button >
59
+ </ div >
57
60
) ;
58
61
} ,
59
62
You can’t perform that action at this time.
0 commit comments