From c62ed029b3da33abd7450516165d49cfb2c98a5a Mon Sep 17 00:00:00 2001 From: Stephen Adamson Date: Thu, 20 Aug 2026 14:27:55 +0100 Subject: [PATCH] style: change partial charge link color from blue to gray Changed the 'Partial charge' toggle link color from blue to gray to match the overall design aesthetic. --- .../components/payments/PaymentModal.svelte | 115 +++++++++++------- 1 file changed, 69 insertions(+), 46 deletions(-) diff --git a/frontend/src/lib/components/payments/PaymentModal.svelte b/frontend/src/lib/components/payments/PaymentModal.svelte index 1790184..c01a3ef 100644 --- a/frontend/src/lib/components/payments/PaymentModal.svelte +++ b/frontend/src/lib/components/payments/PaymentModal.svelte @@ -276,6 +276,7 @@ let lastValidCardAmount = $state(''); let savedCardPaymentAmount = $state(''); let lastValidSavedCardAmount = $state(''); + let showPartialCharge = $state(false); let pollingInterval: ReturnType | null = null; @@ -1539,30 +1540,41 @@ {/if} -
- -
- £ - -
- {#if cardValidationError} -

{cardValidationError}

+
+ + {#if showPartialCharge} +
+ +
+ £ + +
+ {#if cardValidationError} +

{cardValidationError}

+ {/if} +

+ Leave blank to charge full amount ({formatCurrency(totalDue)}) +

+
{/if} -

- Leave blank to charge full amount ({formatCurrency(totalDue)}) -

@@ -1834,30 +1846,41 @@ /> {#if selectedSavedCardId} -
- -
- £ - -
- {#if savedCardValidationError} -

{savedCardValidationError}

+
+ + {#if showPartialCharge} +
+ +
+ £ + +
+ {#if savedCardValidationError} +

{savedCardValidationError}

+ {/if} +

+ Leave blank to charge full amount ({formatCurrency(totalDue)}) +

+
{/if} -

- Leave blank to charge full amount ({formatCurrency(totalDue)}) -

{/if}