From 06b353778db9a11600a2f08898d52cd34ebb2edb Mon Sep 17 00:00:00 2001 From: Rich Tabor Date: Mon, 15 Apr 2024 09:44:03 -0400 Subject: [PATCH] Fix external link indicator in Link Control (#60439) * Add display inline * target the new span rather than the svg * use clip Co-authored-by: richtabor Co-authored-by: jasmussen Co-authored-by: t-hamano Co-authored-by: jeryj --- .../src/components/link-control/style.scss | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/packages/block-editor/src/components/link-control/style.scss b/packages/block-editor/src/components/link-control/style.scss index e635dcf90632f0..91428274a99140 100644 --- a/packages/block-editor/src/components/link-control/style.scss +++ b/packages/block-editor/src/components/link-control/style.scss @@ -249,6 +249,7 @@ $block-editor-link-control-number-of-actions: 1; border-radius: $radius-block-ui; line-height: 1.1; + &:focus { box-shadow: none; } @@ -268,8 +269,15 @@ $block-editor-link-control-number-of-actions: 1; font-weight: normal; } - svg { - display: none; // specifically requested to be removed visually as well. + .components-external-link__icon { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); // specifically requested to be removed visually as well. + border: 0; } } }