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;