Skip to content

Commit 1909dbb

Browse files
committed
Update querySelector to use data selector
1 parent e3930d7 commit 1909dbb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

frontend/src/components/floating-menus/NodeCatalog.svelte

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
return;
126126
}
127127
128-
setTimeout(() => document.querySelector(".node-catalog button.emphasized")?.scrollIntoView({ block: "nearest" }), 0);
128+
setTimeout(() => document.querySelector("[data-emphasized]")?.scrollIntoView({ block: "nearest" }), 0);
129129
}
130130
131131
onMount(() => {
@@ -215,6 +215,11 @@
215215
width: 100%;
216216
margin: 4px 0;
217217
}
218+
219+
.emphasized {
220+
--button-background-color: var(--color-6-lowergray);
221+
--button-text-color: var(--color-f-white);
222+
}
218223
}
219224
}
220225
}

0 commit comments

Comments
 (0)