From f77a78b8565907ca98226ecaa66940b781064d64 Mon Sep 17 00:00:00 2001 From: Keith Solomon Date: Sat, 4 Jul 2026 14:14:50 -0500 Subject: [PATCH] fix(contact): use wp_kses_post for block wrapper and AA color for required marker - contact-info.php was calling esc_attr() on the output of blockWrapperAttributes(), which returns a full attribute string. esc_attr() turned the wrapping quotes into " so the class attribute rendered literally as class="contact-info ...". Switched to wp_kses_post() to match the pattern used by every other block template in the project. - contact-info.css: .gfield_required used --color-cwc-orange-01 (#e15747, 3.71:1 on white) which fails WCAG 2 AA. Swapped to the project's --color-secondary-accessible token (#c43c2b) so the required marker is brand-aligned and meets the 4.5:1 minimum. - Regenerated static/dist/theme.css to match. --- static/dist/theme.css | 2 +- views/blocks/contact-info/contact-info.css | 2 +- views/blocks/contact-info/contact-info.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/static/dist/theme.css b/static/dist/theme.css index 3624cb4..c540a37 100644 --- a/static/dist/theme.css +++ b/static/dist/theme.css @@ -6257,7 +6257,7 @@ a.contact-info__value:hover { } .contact-info__form .gfield_required { - color: var(--color-cwc-orange-01); + color: var(--color-secondary-accessible); margin-left: .25rem; font-weight: 700; } diff --git a/views/blocks/contact-info/contact-info.css b/views/blocks/contact-info/contact-info.css index d58b613..6b93de0 100644 --- a/views/blocks/contact-info/contact-info.css +++ b/views/blocks/contact-info/contact-info.css @@ -131,7 +131,7 @@ a.contact-info__value:hover { } .contact-info__form .gfield_required { - color: var(--color-cwc-orange-01); + color: var(--color-secondary-accessible); font-weight: 700; margin-left: 0.25rem; } diff --git a/views/blocks/contact-info/contact-info.php b/views/blocks/contact-info/contact-info.php index 315235a..85737d9 100644 --- a/views/blocks/contact-info/contact-info.php +++ b/views/blocks/contact-info/contact-info.php @@ -20,7 +20,7 @@ $classes = 'contact-info'; $wrapper = blockWrapperAttributes( $classes, $is_preview ); ?> -
> +
>

Contact