From dbd4f3ca0e254ed764ebe00adaf7384c28b0d61d Mon Sep 17 00:00:00 2001 From: yogeshbhutkar Date: Mon, 23 Dec 2024 12:57:49 +0530 Subject: [PATCH] Add link-ui-popover class and apply margin at the top --- packages/block-library/src/navigation-link/link-ui.js | 1 + packages/block-library/src/navigation-link/style.scss | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/packages/block-library/src/navigation-link/link-ui.js b/packages/block-library/src/navigation-link/link-ui.js index 52db034c6f980c..3b0824a93906b0 100644 --- a/packages/block-library/src/navigation-link/link-ui.js +++ b/packages/block-library/src/navigation-link/link-ui.js @@ -213,6 +213,7 @@ function UnforwardedLinkUI( props, ref ) { placement="bottom" onClose={ props.onClose } anchor={ props.anchor } + className="link-ui-popover" shift > { ! addingBlock && ( diff --git a/packages/block-library/src/navigation-link/style.scss b/packages/block-library/src/navigation-link/style.scss index f2f7d14f93fce3..17f7ce90defa2e 100644 --- a/packages/block-library/src/navigation-link/style.scss +++ b/packages/block-library/src/navigation-link/style.scss @@ -28,3 +28,7 @@ margin-left: $grid-unit-10; text-transform: uppercase; } + +.link-ui-popover { + margin-top: $default-block-margin; +}