File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -6,10 +6,17 @@ const menu: MenuPassThroughOptions = {
6
6
class : tw `ris-body2-regular bg-white shadow` ,
7
7
} ,
8
8
list : {
9
- class : tw `` ,
9
+ class : tw `focus-visible:outline-none ` ,
10
10
} ,
11
- item : {
12
- class : tw `relative h-48 pl-16 pr-12 after:absolute after:-bottom-1 after:left-16 after:right-16 after:border-b after:border-gray-300 after:content-[''] last:after:border-b-0 hover:bg-gray-100` ,
11
+ item : ( { context } ) => {
12
+ const base = tw `relative h-48 pl-16 pr-12 after:absolute after:-bottom-1 after:left-16 after:right-16 after:border-b after:border-gray-300 after:content-[''] last:after:border-b-0 hover:bg-gray-100` ;
13
+ const focused = tw `outline-none outline-4 outline-offset-4 outline-blue-800` ;
14
+ return {
15
+ class : {
16
+ [ base ] : true ,
17
+ [ focused ] : context . focused ,
18
+ } ,
19
+ } ;
13
20
} ,
14
21
itemContent : {
15
22
class : tw `flex h-full items-center py-4` ,
You can’t perform that action at this time.
0 commit comments