Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.

Commit de2bd2e

Browse files
Brian Ochanboilund
authored andcommitted
fix(droppable): add focus style for droppable when tabbed into (focused)
- Add focus outline for droppable when tabbed into (focused)
1 parent e35ea21 commit de2bd2e

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

packages/core/src/Droppable/__snapshots__/index.test.tsx.snap

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ exports[`Droppable Droppable 1`] = `
7171
cursor: pointer;
7272
}
7373
74+
.c2:focus {
75+
border: 1px solid rgb(69,39,160);
76+
outline: none;
77+
}
78+
7479
.c5 {
7580
display: none;
7681
}
@@ -265,6 +270,11 @@ exports[`Droppable Droppable 2`] = `
265270
cursor: pointer;
266271
}
267272
273+
.c2:focus {
274+
border: 1px solid rgb(69,39,160);
275+
outline: none;
276+
}
277+
268278
.c5 {
269279
display: none;
270280
}

packages/core/src/Droppable/index.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ const DroppableArea = styled.div<{ readonly isDragging: boolean }>`
3636
text-align: center;
3737
padding: ${spacing.large} ${spacing.extraLarge};
3838
cursor: pointer;
39+
&:focus {
40+
border: 1px solid ${({ theme }) => theme.color.textPrimary()};
41+
outline: none;
42+
}
3943
`
4044

4145
const DroppableInputFile = styled.input`

0 commit comments

Comments
 (0)