Skip to content

Commit

Permalink
fix: cards example now correctly showing border for selected item usi…
Browse files Browse the repository at this point in the history
…ng peer-data-[checked] (#71)
  • Loading branch information
jcramb authored Mar 29, 2024
1 parent 4b1410f commit b48ad1c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/docs/src/components/cards/payment-method.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function PaymentMethod() {
<RadioGroupItem value="card" id="card" class="peer sr-only" />
<Label
html-for="card"
class="flex flex-col items-center justify-between rounded-md border-2 border-muted bg-popover p-4 hover:bg-accent hover:text-accent-foreground peer-data-[state=checked]:border-primary [&:has([data-state=checked])]:border-primary"
class="flex flex-col items-center justify-between rounded-md border-2 border-muted bg-popover p-4 hover:bg-accent hover:text-accent-foreground peer-data-[checked]:border-primary"
>
<IconCreditCard class="mb-3 size-6" />
Card
Expand All @@ -36,7 +36,7 @@ export function PaymentMethod() {
<RadioGroupItem value="paypal" id="paypal" class="peer sr-only" />
<Label
html-for="paypal"
class="flex flex-col items-center justify-between rounded-md border-2 border-muted bg-popover p-4 hover:bg-accent hover:text-accent-foreground peer-data-[state=checked]:border-primary [&:has([data-state=checked])]:border-primary"
class="flex flex-col items-center justify-between rounded-md border-2 border-muted bg-popover p-4 hover:bg-accent hover:text-accent-foreground peer-data-[checked]:border-primary"
>
<IconBrandPaypal class="mb-3 size-6" />
Paypal
Expand All @@ -46,7 +46,7 @@ export function PaymentMethod() {
<RadioGroupItem value="apple" id="apple" class="peer sr-only" />
<Label
html-for="apple"
class="flex flex-col items-center justify-between rounded-md border-2 border-muted bg-popover p-4 hover:bg-accent hover:text-accent-foreground peer-data-[state=checked]:border-primary [&:has([data-state=checked])]:border-primary"
class="flex flex-col items-center justify-between rounded-md border-2 border-muted bg-popover p-4 hover:bg-accent hover:text-accent-foreground peer-data-[checked]:border-primary"
>
<IconBrandApple class="mb-3 size-6" />
Apple
Expand Down

0 comments on commit b48ad1c

Please sign in to comment.