Skip to content

Commit

Permalink
fix(editor): Fix edge button background color in dark mode in new can…
Browse files Browse the repository at this point in the history
…vas (no-changelog) (#10475)
  • Loading branch information
alexgrozav authored and riascho committed Aug 26, 2024
1 parent dd85ccf commit 8aebaa4
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ function onDelete() {
<div :class="classes" data-test-id="canvas-edge-toolbar">
<N8nIconButton
v-if="isAddButtonVisible"
class="canvas-edge-toolbar-button"
data-test-id="add-connection-button"
type="tertiary"
size="small"
Expand All @@ -44,6 +45,7 @@ function onDelete() {
/>
<N8nIconButton
data-test-id="delete-connection-button"
class="canvas-edge-toolbar-button"
type="tertiary"
size="small"
icon="trash"
Expand All @@ -62,3 +64,10 @@ function onDelete() {
pointer-events: all;
}
</style>

<style lang="scss">
[data-theme='dark'] .canvas-edge-toolbar-button {
--button-background-color: var(--color-background-base);
--button-hover-background-color: var(--color-background-light);
}
</style>

0 comments on commit 8aebaa4

Please sign in to comment.