Skip to content

Commit

Permalink
feat: hover state for Card Settings (#1609)
Browse files Browse the repository at this point in the history
Update UserCardSettings.tsx
  • Loading branch information
Tymmmy authored Sep 17, 2024
1 parent 7caecf8 commit 18e5bff
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { useCardContext } from './UserCardContext'

export const UserCardSettings = () => {
return (
<ul role="list" className="space-y-2">
<ul role="list" className="space-y-2 pt-4 sm:pt-0">
<SpendingLimit />
<PinSettings />
</ul>
Expand All @@ -23,17 +23,17 @@ const SpendingLimit = () => {
onClick={() => {
openDialog(<UserCardSpendingLimitDialog onClose={closeDialog} />)
}}
className="block w-full bg-green-light dark:bg-purple-bright rounded-md p-3"
className="block w-full bg-green-light dark:bg-purple-bright rounded-md p-3 dark:hover:shadow-glow-button group"
>
<div className="flex min-w-0 gap-x-4">
<div className="size-12 grid place-items-center bg-green dark:bg-purple-dark rounded-full">
<Limit className="text-white size-6" />
</div>
<div className="min-w-0 flex-auto text-left">
<p className="font-semibold leading-6 text-gray-900">
<p className="font-semibold leading-6 text-gray-900 group-hover:underline dark:group-hover:no-underline">
Spending Limit
</p>
<p className="mt-1 text-grey-dark dark:text-white/70 truncate text-xs leading-5 text-gray-500">
<p className="mt-1 text-grey-dark dark:text-white/70 truncate text-xs leading-5 text-gray-500 group-hover:underline dark:group-hover:no-underline">
Monthly & Daily Limit
</p>
</div>
Expand All @@ -53,17 +53,17 @@ const PinSettings = () => {
onClick={() => {
openDialog(<UserCardPINDialog card={card} onClose={closeDialog} />)
}}
className="block w-full bg-green-light dark:bg-purple-bright rounded-md p-3"
className="block w-full bg-green-light dark:bg-purple-bright rounded-md p-3 dark:hover:shadow-glow-button group"
>
<div className="flex min-w-0 gap-x-4">
<div className="size-12 grid place-items-center bg-green dark:bg-purple-dark rounded-full">
<CardKey className="text-white size-6" />
</div>
<div className="min-w-0 flex-auto text-left">
<p className="font-semibold leading-6 text-gray-900">
<p className="font-semibold leading-6 text-gray-900 group-hover:underline dark:group-hover:no-underline">
View Card PIN
</p>
<p className="mt-1 text-grey-dark dark:text-white/70 truncate text-xs leading-5 text-gray-500">
<p className="mt-1 text-grey-dark dark:text-white/70 truncate text-xs leading-5 text-gray-500 group-hover:underline dark:group-hover:no-underline">
Security
</p>
</div>
Expand Down

0 comments on commit 18e5bff

Please sign in to comment.