From 7472c0d3aa03c28be19f9814f73824970cabf257 Mon Sep 17 00:00:00 2001 From: Joen A <1204802+jasmussen@users.noreply.github.com> Date: Wed, 7 Feb 2024 09:05:37 +0100 Subject: [PATCH] Link UI: polish lightbox pieces. (#58666) * Link UI: polish lightbox pieces. * Polish info style * Remove top margin from description --------- Co-authored-by: Tetsuaki Hamano --- .../src/components/url-input/style.scss | 6 ++-- .../url-popover/image-url-input-ui.js | 6 ++-- .../src/components/url-popover/style.scss | 30 ++++++------------- 3 files changed, 15 insertions(+), 27 deletions(-) diff --git a/packages/block-editor/src/components/url-input/style.scss b/packages/block-editor/src/components/url-input/style.scss index 214866ccbab18..66f71e803595a 100644 --- a/packages/block-editor/src/components/url-input/style.scss +++ b/packages/block-editor/src/components/url-input/style.scss @@ -15,11 +15,13 @@ $input-size: 300px; width: $input-size; } padding: $input-padding; - border: none; - border-radius: 0; margin-left: 0; margin-right: 0; + &:not(:focus) { + border-color: transparent; + } + /* Fonts smaller than 16px causes mobile safari to zoom. */ font-size: $mobile-text-min-font-size; @include break-small { diff --git a/packages/block-editor/src/components/url-popover/image-url-input-ui.js b/packages/block-editor/src/components/url-popover/image-url-input-ui.js index dca8db868bbb5..ae59daa1f502b 100644 --- a/packages/block-editor/src/components/url-popover/image-url-input-ui.js +++ b/packages/block-editor/src/components/url-popover/image-url-input-ui.js @@ -14,6 +14,7 @@ import { __experimentalVStack as VStack, } from '@wordpress/components'; import { + Icon, link as linkIcon, image, page, @@ -342,9 +343,7 @@ const ImageURLInputUI = ( { ) } { ! url && ! isEditingLink && lightboxEnabled && (
-
- { fullscreen } -
+

{ __( 'Expand on click' ) }

@@ -355,7 +354,6 @@ const ImageURLInputUI = ( {