From c0ba17ca0091cfd591ce1de98decc38c457339f5 Mon Sep 17 00:00:00 2001 From: Iqbal Ahmed Date: Fri, 18 Oct 2024 12:32:34 +0100 Subject: [PATCH] PP-13164 Update markup around email fieldset - Got rid of redundant div which was causing issues for assistive tech. --- app/views/charge.njk | 66 +++++++++++++++++++++----------------------- 1 file changed, 32 insertions(+), 34 deletions(-) diff --git a/app/views/charge.njk b/app/views/charge.njk index 71163a27e..83a774bf9 100644 --- a/app/views/charge.njk +++ b/app/views/charge.njk @@ -530,42 +530,40 @@ {% if shouldShowEmail %}
-
- - {% if (allowApplePay or allowGooglePay) and not savePaymentInstrumentToAgreement %} -

{{ __p("cardDetails.contactDetails") }}

+ + {% if (allowApplePay or allowGooglePay) and not savePaymentInstrumentToAgreement %} +

{{ __p("cardDetails.contactDetails") }}

+ {% endif %} +

{{ __p("cardDetails.contactDetails") }}

+
+
{{ __p("cardDetails.emailHint") }}
+ +
+ + + {% if highlightErrorFields.email %} +

+ {{ __p("fieldErrors.visuallyHiddenError") }} + {{ highlightErrorFields.email }} +

{% endif %} -

{{ __p("cardDetails.contactDetails") }}

- -
{{ __p("cardDetails.emailHint") }}
-
- - - {% if highlightErrorFields.email %} -

- {{ __p("fieldErrors.visuallyHiddenError") }} - {{ highlightErrorFields.email }} -

- {% endif %} - - -
+