mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-22 03:33:06 +08:00
fix: at menu toolip should always use the default color (#10054)
fix AF-2194
This commit is contained in:
@@ -5,6 +5,7 @@ import {
|
|||||||
cleanSpecifiedTail,
|
cleanSpecifiedTail,
|
||||||
getTextContentFromInlineRange,
|
getTextContentFromInlineRange,
|
||||||
} from '@blocksuite/affine-components/rich-text';
|
} from '@blocksuite/affine-components/rich-text';
|
||||||
|
import { unsafeCSSVar } from '@blocksuite/affine-shared/theme';
|
||||||
import {
|
import {
|
||||||
createKeydownObserver,
|
createKeydownObserver,
|
||||||
getCurrentNativeRange,
|
getCurrentNativeRange,
|
||||||
@@ -16,7 +17,7 @@ import {
|
|||||||
throttle,
|
throttle,
|
||||||
WithDisposable,
|
WithDisposable,
|
||||||
} from '@blocksuite/global/utils';
|
} 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 { property, query, queryAll, state } from 'lit/decorators.js';
|
||||||
import { styleMap } from 'lit/directives/style-map.js';
|
import { styleMap } from 'lit/directives/style-map.js';
|
||||||
|
|
||||||
@@ -241,7 +242,13 @@ export class LinkedDocPopover extends SignalWatcher(
|
|||||||
accIdx++;
|
accIdx++;
|
||||||
const curIdx = accIdx - 1;
|
const curIdx = accIdx - 1;
|
||||||
const tooltip = this._showTooltip
|
const tooltip = this._showTooltip
|
||||||
? html`<affine-tooltip tip-position=${'right'}
|
? html`<affine-tooltip
|
||||||
|
tip-position=${'right'}
|
||||||
|
.tooltipStyle=${css`
|
||||||
|
* {
|
||||||
|
color: ${unsafeCSSVar('white')} !important;
|
||||||
|
}
|
||||||
|
`}
|
||||||
>${name}</affine-tooltip
|
>${name}</affine-tooltip
|
||||||
>`
|
>`
|
||||||
: nothing;
|
: nothing;
|
||||||
|
|||||||
Reference in New Issue
Block a user