From ab5def98a73ea36d0d51953f73d066f68be14b86 Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Wed, 31 Jan 2024 14:48:59 -0500 Subject: [PATCH] Move item type menu CSS override to SCSS --- chrome/content/zotero/elements/itemBox.js | 2 -- scss/elements/_itemBox.scss | 4 ++++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/elements/itemBox.js b/chrome/content/zotero/elements/itemBox.js index 0490e82dd1..8cc661c249 100644 --- a/chrome/content/zotero/elements/itemBox.js +++ b/chrome/content/zotero/elements/itemBox.js @@ -888,8 +888,6 @@ row.appendChild(labelWrapper); row.appendChild(rowData); this._infoTable.appendChild(row); - // Remove the default bold font from the label in shadow dom - this.querySelector("#item-type-menu").shadowRoot.querySelector("#label-box").style = "font-weight: normal"; } updateItemTypeMenuSelection() { diff --git a/scss/elements/_itemBox.scss b/scss/elements/_itemBox.scss index ffd6f127d1..0c040e57b1 100644 --- a/scss/elements/_itemBox.scss +++ b/scss/elements/_itemBox.scss @@ -42,6 +42,10 @@ item-box { &::part(dropmarker) { display: none; } + + &::part(label-box) { + font-weight: normal; + } &::part(label) { margin-inline-start: 0;