From 8b838e988557cdadfce29c5fca11c5ffedc041c0 Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Fri, 19 Apr 2024 16:07:42 +0200 Subject: [PATCH] Improve the link preview accessibility and labels. --- .../components/link-control/link-preview.js | 23 ++++++++++++------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/packages/block-editor/src/components/link-control/link-preview.js b/packages/block-editor/src/components/link-control/link-preview.js index e5de47f0153a82..962228583f43e5 100644 --- a/packages/block-editor/src/components/link-control/link-preview.js +++ b/packages/block-editor/src/components/link-control/link-preview.js @@ -6,7 +6,7 @@ import clsx from 'clsx'; /** * WordPress dependencies */ -import { __, sprintf } from '@wordpress/i18n'; +import { __ } from '@wordpress/i18n'; import { Button, ExternalLink, @@ -96,7 +96,8 @@ export default function LinkPreview( { return (
- + { hasUnlinkControl && (