From 3a7c4ad7875541034b11ca123038aafeadef152b Mon Sep 17 00:00:00 2001 From: Chai Pin Zheng Date: Tue, 23 Jun 2026 20:35:01 +0700 Subject: [PATCH] =?UTF-8?q?fix(pricing):=20review-nit=20polish=20=E2=80=94?= =?UTF-8?q?=20link=20validation,=20decorative=20icons,=20split=20highlight?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Three polish fixes from the pricing-family code review. All visually neutral, so the just-minted (#193) Linux baselines stay valid. - PricingEnterprise: validate the logo `href` so non-http(s) values (e.g. a `javascript:` payload) are rejected. Inlined rather than reusing shared/safeUrls — the embed/form validators there would wrongly reject arbitrary customer URLs. - Mark the decorative feature-list `` icons aria-hidden across all five variants so screen readers don't announce them. - PricingSplit: derive the highlighted (right) plan from the `featured` flag instead of hard-coding plans[1], so marking either plan featured works. Mirrored in the PricingSplitDemo twin. Co-Authored-By: Claude Opus 4.8 --- .../source/blocks/PricingCards/Component.tsx | 2 +- .../source/blocks/PricingCardsCta/Component.tsx | 2 +- .../blocks/PricingCardsMuted/Component.tsx | 2 +- .../blocks/PricingEnterprise/Component.tsx | 2 +- .../source/blocks/PricingEnterprise/config.ts | 16 ++++++++++++++++ .../source/blocks/PricingSplit/Component.tsx | 10 ++++++---- src/components/site/demos/PricingSplitDemo.tsx | 4 ++-- 7 files changed, 28 insertions(+), 10 deletions(-) diff --git a/payload-components/source/blocks/PricingCards/Component.tsx b/payload-components/source/blocks/PricingCards/Component.tsx index 58f7d99..3082c85 100644 --- a/payload-components/source/blocks/PricingCards/Component.tsx +++ b/payload-components/source/blocks/PricingCards/Component.tsx @@ -90,7 +90,7 @@ export const PricingCardsBlock: React.FC = ({ key={item.id ?? `${item.feature}-${featureIndex}`} className="flex items-center gap-2" > - +