From 6839e634e7d704ec520682eaf2762bf55ded3214 Mon Sep 17 00:00:00 2001 From: pengx17 Date: Mon, 10 Feb 2025 09:19:14 +0000 Subject: [PATCH] fix: at menu toolip should always use the default color (#10054) fix AF-2194 --- .../widgets/linked-doc/linked-doc-popover.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/blocksuite/blocks/src/root-block/widgets/linked-doc/linked-doc-popover.ts b/blocksuite/blocks/src/root-block/widgets/linked-doc/linked-doc-popover.ts index d866b55a5b..9fc9329eca 100644 --- a/blocksuite/blocks/src/root-block/widgets/linked-doc/linked-doc-popover.ts +++ b/blocksuite/blocks/src/root-block/widgets/linked-doc/linked-doc-popover.ts @@ -5,6 +5,7 @@ import { cleanSpecifiedTail, getTextContentFromInlineRange, } from '@blocksuite/affine-components/rich-text'; +import { unsafeCSSVar } from '@blocksuite/affine-shared/theme'; import { createKeydownObserver, getCurrentNativeRange, @@ -16,7 +17,7 @@ import { throttle, WithDisposable, } from '@blocksuite/global/utils'; -import { html, LitElement, nothing } from 'lit'; +import { css, html, LitElement, nothing } from 'lit'; import { property, query, queryAll, state } from 'lit/decorators.js'; import { styleMap } from 'lit/directives/style-map.js'; @@ -241,7 +242,13 @@ export class LinkedDocPopover extends SignalWatcher( accIdx++; const curIdx = accIdx - 1; const tooltip = this._showTooltip - ? html`${name}` : nothing;