From 52ef6d1b6f2c4be99426929fc98b17dc7e7e96fc Mon Sep 17 00:00:00 2001 From: Aaron Pham <29749331+aarnphm@users.noreply.github.com> Date: Tue, 6 Feb 2024 01:12:31 -0500 Subject: [PATCH] fix(search): set background-color for icon within preview panel (#815) Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com> --- quartz/components/styles/search.scss | 4 ++++ quartz/plugins/transformers/gfm.ts | 1 + 2 files changed, 5 insertions(+) diff --git a/quartz/components/styles/search.scss b/quartz/components/styles/search.scss index d25d0f8..2f07fe7 100644 --- a/quartz/components/styles/search.scss +++ b/quartz/components/styles/search.scss @@ -159,6 +159,10 @@ margin: 0 auto; width: min($pageWidth, 100%); } + + & [data-icon] { + background-color: transparent; + } } & > #results-container { diff --git a/quartz/plugins/transformers/gfm.ts b/quartz/plugins/transformers/gfm.ts index 7860f85..dc0d1f0 100644 --- a/quartz/plugins/transformers/gfm.ts +++ b/quartz/plugins/transformers/gfm.ts @@ -35,6 +35,7 @@ export const GitHubFlavoredMarkdown: QuartzTransformerPlugin | ariaHidden: true, tabIndex: -1, "data-no-popover": true, + "data-icon": true, }, content: { type: "element",