Skip to content

Commit

Permalink
fix: radio group focus rings on payment demo
Browse files Browse the repository at this point in the history
Actually fixes #84

My bad :S
  • Loading branch information
jolbol1 committed Jan 30, 2025
1 parent 3c2487a commit aac97a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/examples/payment-method-demo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export function CardsPaymentMethod() {
<Radio
value="card"
id="card"
className="flex flex-col items-center justify-between rounded-md border-2 border-muted bg-transparent p-4 ring-offset-background focus-visible:outline-none data-[selected]:border-primary data-[hover]:bg-accent data-[hover]:text-accent-foreground data-[focus-visible]:outline-none data-[focus-visible]:ring-2 data-[focus-visible]:ring-ring data-[focus-visible]:ring-offset-2 [&>.jolly-Radio]:hidden"
className="flex flex-col items-center justify-between rounded-md border-2 border-muted bg-transparent p-4 ring-offset-background focus-visible:outline-none data-[selected]:border-primary data-[hovered]:bg-accent data-[hovered]:text-accent-foreground data-[focus-visible]:outline-none data-[focus-visible]:ring-2 data-[focus-visible]:ring-ring data-[focus-visible]:ring-offset-2 [&>.jolly-Radio]:hidden"
aria-label="Card"
>
<svg
Expand All @@ -69,7 +69,7 @@ export function CardsPaymentMethod() {
<Radio
value="paypal"
id="paypal"
className="flex flex-col items-center justify-between rounded-md border-2 border-muted bg-transparent p-4 hover:bg-accent hover:text-accent-foreground data-[selected]:border-primary [&>.jolly-Radio]:hidden"
className="flex flex-col items-center justify-between rounded-md border-2 border-muted bg-transparent p-4 ring-offset-background focus-visible:outline-none data-[selected]:border-primary data-[hovered]:bg-accent data-[hovered]:text-accent-foreground data-[focus-visible]:outline-none data-[focus-visible]:ring-2 data-[focus-visible]:ring-ring data-[focus-visible]:ring-offset-2 [&>.jolly-Radio]:hidden"
aria-label="Paypal"
>
<Icons.paypal aria-hidden className="mb-3 size-6" />
Expand All @@ -81,7 +81,7 @@ export function CardsPaymentMethod() {
<Radio
value="apple"
id="apple"
className="flex flex-col items-center justify-between rounded-md border-2 border-muted bg-transparent p-4 hover:bg-accent hover:text-accent-foreground data-[selected]:border-primary [&>.jolly-Radio]:hidden"
className="flex flex-col items-center justify-between rounded-md border-2 border-muted bg-transparent p-4 ring-offset-background focus-visible:outline-none data-[selected]:border-primary data-[hovered]:bg-accent data-[hovered]:text-accent-foreground data-[focus-visible]:outline-none data-[focus-visible]:ring-2 data-[focus-visible]:ring-ring data-[focus-visible]:ring-offset-2 [&>.jolly-Radio]:hidden"
aria-label="Apple"
>
<Icons.apple aria-hidden className="mb-3 size-6" />
Expand Down

0 comments on commit aac97a8

Please sign in to comment.