File tree Expand file tree Collapse file tree 2 files changed +22
-17
lines changed
packages/selenium-ide/src/neo/components
ActionButtons/ActionButton Expand file tree Collapse file tree 2 files changed +22
-17
lines changed Original file line number Diff line number Diff line change @@ -22,18 +22,21 @@ import './style.css'
22
22
23
23
export default class ActionButton extends React . Component {
24
24
render ( ) {
25
- const props = { ...this . props }
25
+ const { 'data-tip' : dataTip , ...props } = { ...this . props }
26
+
26
27
delete props . isActive
27
28
return (
28
- < button
29
- type = "button"
30
- { ...props }
31
- className = { classNames (
32
- 'btn-action' ,
33
- { active : this . props . isActive } ,
34
- this . props . className
35
- ) }
36
- />
29
+ < span data-tip = { dataTip } >
30
+ < button
31
+ type = "button"
32
+ { ...props }
33
+ className = { classNames (
34
+ 'btn-action' ,
35
+ { active : this . props . isActive } ,
36
+ this . props . className
37
+ ) }
38
+ />
39
+ </ span >
37
40
)
38
41
}
39
42
Original file line number Diff line number Diff line change @@ -25,15 +25,17 @@ export default class FlatButton extends React.Component {
25
25
buttonRef : PropTypes . func ,
26
26
}
27
27
render ( ) {
28
- const props = { ...this . props }
28
+ const { 'data-tip' : dataTip , ... props } = { ...this . props }
29
29
delete props . buttonRef
30
30
return (
31
- < button
32
- type = "button"
33
- ref = { this . props . buttonRef }
34
- { ...props }
35
- className = { classNames ( 'btn' , this . props . className ) }
36
- />
31
+ < span data-tip = { dataTip } >
32
+ < button
33
+ type = "button"
34
+ ref = { this . props . buttonRef }
35
+ { ...props }
36
+ className = { classNames ( 'btn' , this . props . className ) }
37
+ />
38
+ </ span >
37
39
) // eslint-disable-line react/prop-types
38
40
}
39
41
}
You can’t perform that action at this time.
0 commit comments