Skip to content

Commit

Permalink
Submit button fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xlisachan committed Jun 5, 2024
1 parent 9a57d5c commit 95b0b35
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 2 additions & 7 deletions libs/payments/ui/src/lib/client/components/CheckoutForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ export function CheckoutForm({
<div
className={
formEnabled
? ''
: 'cursor-not-allowed relative focus:border-blue-400 focus:outline-none focus:shadow-input-blue-focus after:absolute after:content-[""] after:top-0 after:left-0 after:w-full after:h-full after:bg-white after:opacity-50 after:z-10'
? 'mt-10'
: 'mt-10 cursor-not-allowed relative focus:border-blue-400 focus:outline-none focus:shadow-input-blue-focus after:absolute after:content-[""] after:top-0 after:left-0 after:w-full after:h-full after:bg-white after:opacity-50 after:z-10'
}
onClick={() => setShowConsentError(true)}
>
Expand Down Expand Up @@ -229,11 +229,6 @@ export function CheckoutForm({
aria-disabled={
!stripeFieldsComplete || !nonStripeFieldsComplete || loading
}
className={
formEnabled
? ''
: 'cursor-not-allowed relative focus:border-blue-400 focus:outline-none focus:shadow-input-blue-focus after:absolute after:content-[""] after:top-0 after:left-0 after:w-full after:h-full after:bg-white after:opacity-50 after:z-10'
}
>
<Image src={LockImage} className="h-4 w-4 mx-3" alt="" />
<Localized id="next-new-user-submit">Subscribe Now</Localized>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export function PrimaryButton({ children, ...props }: PrimaryButtonProps) {
return (
<button
{...props}
className={`flex items-center justify-center bg-blue-500 font-semibold h-12 rounded-md text-white w-full p-4 mt-6 hover:bg-blue-700 aria-disabled:relative aria-disabled:after:absolute aria-disabled:after:content-[''] aria-disabled:after:top-0 aria-disabled:after:left-0 aria-disabled:after:w-full aria-disabled:after:h-full aria-disabled:after:bg-white aria-disabled:after:opacity-50 aria-disabled:after:z-30 aria-disabled:border-none ${props.className}`}
className={`flex items-center justify-center bg-blue-500 font-semibold h-12 rounded-md text-white w-full p-4 mt-6 hover:bg-blue-700 z-10 aria-disabled:relative aria-disabled:after:absolute aria-disabled:after:content-[''] aria-disabled:after:top-0 aria-disabled:after:left-0 aria-disabled:after:w-full aria-disabled:after:h-full aria-disabled:after:bg-white aria-disabled:after:opacity-50 aria-disabled:after:z-30 aria-disabled:border-none ${props.className}`}
>
{children}
</button>
Expand Down

0 comments on commit 95b0b35

Please sign in to comment.