From b864cbf9d3e997b90e13233b63d9a3ed872171a4 Mon Sep 17 00:00:00 2001 From: Peng Xiao Date: Wed, 11 Dec 2024 17:59:04 +0800 Subject: [PATCH] fix(core): backlink preview should use sans font family (#9102) --- .../block-suite-editor/bi-directional-link-panel.css.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/frontend/core/src/components/blocksuite/block-suite-editor/bi-directional-link-panel.css.ts b/packages/frontend/core/src/components/blocksuite/block-suite-editor/bi-directional-link-panel.css.ts index 509031c590..2c185be276 100644 --- a/packages/frontend/core/src/components/blocksuite/block-suite-editor/bi-directional-link-panel.css.ts +++ b/packages/frontend/core/src/components/blocksuite/block-suite-editor/bi-directional-link-panel.css.ts @@ -96,6 +96,9 @@ export const linkPreview = style({ padding: '8px', marginBottom: '8px', color: cssVarV2('text/primary'), + vars: { + [cssVar('fontFamily')]: cssVar('fontSansFamily'), + }, ':hover': { backgroundColor: cssVarV2('layer/background/hoverOverlay'), },