Commit 9b55a5d Brian Ryu
committed
1 parent 5556e93 commit 9b55a5d Copy full SHA for 9b55a5d
File tree 3 files changed +7
-2
lines changed
.stories/grouping-items/Item
3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ function Item(props) {
16
16
dragging && styles . dragging ,
17
17
) }
18
18
onClick = { ( ) => onClick ( value ) }
19
+ tabIndex = { 0 }
19
20
>
20
21
Item { value }
21
22
{ shouldRenderItemCountBadge ? < Badge count = { selectedItemsCount } /> : null }
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ $badgeBorderColor: #da4553;
28
28
border-top : $borderWidth solid #efefef ;
29
29
box-sizing : border-box ;
30
30
user-select : none ;
31
+ outline : none ;
31
32
32
33
color : $color ;
33
34
font-weight : $fontWeight-regular ;
@@ -52,6 +53,10 @@ $badgeBorderColor: #da4553;
52
53
border : $borderWidth solid #efefef ;
53
54
box-shadow : $boxShadow ;
54
55
}
56
+
57
+ & :focus {
58
+ border : 2px solid lightsteelblue
59
+ }
55
60
}
56
61
57
62
.Badge {
Original file line number Diff line number Diff line change @@ -774,9 +774,8 @@ export default function sortableContainer(
774
774
const isValidSortingTarget = useDragHandle ? isSortableHandle ( target ) : target . sortableInfo ;
775
775
776
776
if (
777
- shouldCancelStart ( event ) ||
778
777
( this . manager . active && ! this . manager . active . isKeySorting ) ||
779
- ( ! this . manager . active && ( keyCode !== KEYCODE . SPACE || ! isValidSortingTarget ) )
778
+ ( ! this . manager . active && ( keyCode !== KEYCODE . SPACE || shouldCancelStart ( event ) || ! isValidSortingTarget ) )
780
779
) {
781
780
return ;
782
781
}
You can’t perform that action at this time.
0 commit comments