From dfa8f619b2db1d29148675ac0c70b84f6ddc9c65 Mon Sep 17 00:00:00 2001 From: Vasile Chindris Date: Sun, 27 Oct 2024 08:50:35 +0200 Subject: [PATCH] chore(SLB-454): style adjustments for the link results suggestions output --- packages/drupal/gutenberg_blocks/css/edit.css | 15 +++++++++++++++ .../gutenberg_blocks/js/blocks/teaser-list.tsx | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/packages/drupal/gutenberg_blocks/css/edit.css b/packages/drupal/gutenberg_blocks/css/edit.css index 68f0871f5..c92ac8034 100644 --- a/packages/drupal/gutenberg_blocks/css/edit.css +++ b/packages/drupal/gutenberg_blocks/css/edit.css @@ -312,3 +312,18 @@ details[open] > summary svg { .col-start-2 { grid-column-start: 2; } + + +/* Reset a few link input suggestion styles to their gutenberg editor values. */ +.block-editor-inner-blocks .block-editor-link-control__search-input-wrapper { + border: 1px solid #cccccc; + font-size: 13px; +} + +.block-editor-inner-blocks .block-editor-link-control__search-input-wrapper button.block-editor-link-control__search-item { + padding: 12px 16px; +} + +.block-editor-inner-blocks .block-editor-link-control__search-input-wrapper button.block-editor-link-control__search-item:hover { + background-color: #ddd; +} diff --git a/packages/drupal/gutenberg_blocks/js/blocks/teaser-list.tsx b/packages/drupal/gutenberg_blocks/js/blocks/teaser-list.tsx index 45421d828..95bd870de 100644 --- a/packages/drupal/gutenberg_blocks/js/blocks/teaser-list.tsx +++ b/packages/drupal/gutenberg_blocks/js/blocks/teaser-list.tsx @@ -47,7 +47,7 @@ registerBlockType<{ attributes; return ( -
+
{__('Teaser list')}