From da12e1e7f3d4399b676abe30f90451a4d243cd65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gergely=20Cs=C3=A9csey?= Date: Fri, 6 Jun 2025 15:22:50 +0100 Subject: [PATCH 1/2] Accessibility: add ARIA labels to Add New Site dialog --- client/dashboard/sites/add-new-site/index.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/dashboard/sites/add-new-site/index.tsx b/client/dashboard/sites/add-new-site/index.tsx index 9c631ddaffba..d76090ecb15d 100644 --- a/client/dashboard/sites/add-new-site/index.tsx +++ b/client/dashboard/sites/add-new-site/index.tsx @@ -67,6 +67,7 @@ function AddNewSite( { context }: AddNewSiteProps ) { description={ __( 'Build and grow your site, all in one powerful platform.' ) } onClick={ wordpressClick } href={ `/start?source=${ context }&ref=new-site-popover` } + aria-label={ __( 'Add WordPress.com site' ) } /> } @@ -81,6 +82,7 @@ function AddNewSite( { context }: AddNewSiteProps ) { } ); } } href={ `/setup/ai-site-builder?source=${ context }&ref=new-site-popover` } + aria-label={ __( 'Build a new site with AI' ) } /> } @@ -88,6 +90,7 @@ function AddNewSite( { context }: AddNewSiteProps ) { description={ __( 'Install the Jetpack plugin on an existing site.' ) } onClick={ jetpackClick } href={ `/jetpack/connect?cta_from=${ context }&cta_id=add-site` } + aria-label={ __( 'Add site via the Jetpack plugin' ) } /> @@ -97,6 +100,7 @@ function AddNewSite( { context }: AddNewSiteProps ) { description={ __( 'Bring your entire WordPress site to WordPress.com.' ) } onClick={ migrateClick } href={ `/setup/site-migration?source=${ context }&ref=new-site-popover&action=migrate` } + aria-label={ __( 'Migrate an existing WordPress site' ) } /> } @@ -104,6 +108,7 @@ function AddNewSite( { context }: AddNewSiteProps ) { description={ __( 'Use a backup to only import content from other platforms.' ) } onClick={ importClick } href={ `/setup/site-migration/create-site?source=${ context }&ref=new-site-popover&action=import` } + aria-label={ __( 'Import content from other platforms' ) } /> From 2ea2990b76f1a99337608517b9271f4db1d9c139 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gergely=20Cs=C3=A9csey?= Date: Fri, 6 Jun 2025 15:54:26 +0100 Subject: [PATCH 2/2] Add aria label to special offer --- client/dashboard/sites/add-new-site/index.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/dashboard/sites/add-new-site/index.tsx b/client/dashboard/sites/add-new-site/index.tsx index d76090ecb15d..d5d5406ae9c1 100644 --- a/client/dashboard/sites/add-new-site/index.tsx +++ b/client/dashboard/sites/add-new-site/index.tsx @@ -122,9 +122,10 @@ function AddNewSite( { context }: AddNewSiteProps ) { width: '260px', padding: 0, } } + aria-label={ __( 'Get special offer: Free domain and up to 55% off annual plans' ) } > - { + { offer } { sprintf( @@ -137,7 +138,7 @@ function AddNewSite( { context }: AddNewSiteProps ) { } ) ) } -
{ __( 'Unlock offer' ) }
+