Skip to content

Commit

Permalink
fix keyboard active state
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacksonmills committed Oct 20, 2023
1 parent f2ae1a4 commit 3bf5a5e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions www/src/components/landingPage/ClipboardSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,12 @@ export default function ClipboardSelect() {
>
{commands.map(({ command, manager }) => (
<Menu.Item key={manager}>
{() => {
{({ active }) => {
return (
<button
className={`group flex w-full items-center bg-t3-purple-200/10 px-2 py-2 text-sm hover:bg-t3-purple-200/20`}
className={`${
active && "bg-t3-purple-200/20"
} group flex w-full items-center bg-t3-purple-200/10 px-2 py-2 text-sm hover:bg-t3-purple-200/20`}
onClick={() => {
handleCopyToClipboard(command)
.then(() => {
Expand Down

0 comments on commit 3bf5a5e

Please sign in to comment.