File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
src/components/delete-button
test/unit/components/__snapshots__ Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 17
17
18
18
}
19
19
20
- /* .delete-button.large:hover {
21
- transform: scale(1.1, 1.1);
22
- box-shadow: 0 0 0 4px $ui-black-transparent;
23
- } */
24
-
25
20
.delete-button-visible {
26
21
display : flex;
27
22
align-items : center;
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ const DeleteButton = props => (
13
13
props . className
14
14
) }
15
15
role = "button"
16
- tabIndex = "0"
16
+ tabIndex = { props . tabIndex }
17
17
onClick = { props . onClick }
18
18
>
19
19
< div className = { styles . deleteButtonVisible } >
@@ -28,7 +28,12 @@ const DeleteButton = props => (
28
28
29
29
DeleteButton . propTypes = {
30
30
className : PropTypes . string ,
31
- onClick : PropTypes . func . isRequired
31
+ onClick : PropTypes . func . isRequired ,
32
+ tabIndex : PropTypes . number
33
+ } ;
34
+
35
+ DeleteButton . defaultProps = {
36
+ tabIndex : 0
32
37
} ;
33
38
34
39
export default DeleteButton ;
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ exports[`SpriteSelectorItemComponent matches snapshot when given a number and de
50
50
className = " "
51
51
onClick = { [Function ]}
52
52
role = " button"
53
- tabIndex = " 0 "
53
+ tabIndex = { 0 }
54
54
>
55
55
<div
56
56
className = { undefined }
@@ -134,7 +134,7 @@ exports[`SpriteSelectorItemComponent matches snapshot when selected 1`] = `
134
134
className = " "
135
135
onClick = { [Function ]}
136
136
role = " button"
137
- tabIndex = " 0 "
137
+ tabIndex = { 0 }
138
138
>
139
139
<div
140
140
className = { undefined }
You can’t perform that action at this time.
0 commit comments