Skip to content

Commit 1527339

Browse files
committed
Minor changes
1 parent 7f569e5 commit 1527339

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

resources/js/ui/drop-down/drop-down.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import clsx from 'clsx';
12
import { isEmpty } from 'lodash';
23
import React, { ReactNode, useRef, useState, useEffect } from 'react';
34

@@ -96,9 +97,12 @@ const Dropdown = ({
9697
setOpen(false);
9798
setFocusedIndex(null);
9899
}}
99-
className={`px-4 py-2 cursor-pointer ${
100-
focusedIndex === idx ? 'bg-gray-200 dark:bg-gray-700 rounded-md' : ''
101-
} hover:bg-gray-200 dark:hover:bg-gray-700`}
100+
className={clsx(
101+
'mx-1 my-1 px-4 py-4 cursor-pointer rounded-lg transition-colors duration-100',
102+
focusedIndex === idx
103+
? 'bg-gray-300 dark:bg-gray-700'
104+
: 'hover:bg-gray-300 dark:hover:bg-gray-800'
105+
)}
102106
>
103107
{label}
104108
</li>

0 commit comments

Comments
 (0)