fix(editor): Use contrasting colors for popovers and tooltips

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™ 2024-12-13 20:39:12 +01:00
parent 53365a2159
commit 61d812c07d
No known key found for this signature in database
4 changed files with 6 additions and 6 deletions

View file

@ -748,14 +748,15 @@ $popover-title-font-color: var(--color-text-dark);
/* Tooltip
-------------------------- */
/// color|1|Color|0
$tooltip-fill: var(--color-background-dark);
$tooltip-fill: var(--color-background-xlight);
/// color|1|Color|0
$tooltip-color: $color-white;
$tooltip-color: var(--color-text-base);
/// fontSize||Font|1
$tooltip-font-size: 12px;
/// color||Color|0
$tooltip-border-color: var(--color-background-dark);
$tooltip-arrow-size: 6px;
$tooltip-border-color: var(--color-background-medium);
$tooltip-border-width: 1px;
$tooltip-arrow-size: 8px;
/// padding||Spacing|3
$tooltip-padding: 10px;

View file

@ -114,6 +114,7 @@
@include mixins.when(dark) {
background: var.$tooltip-fill;
border: var.$tooltip-border-width solid var.$tooltip-border-color;
color: var.$tooltip-color;
&[data-popper-placement^='top'] .el-popper__arrow {

View file

@ -358,7 +358,6 @@ const onContextMenu = (e: MouseEvent): void => {
<font-awesome-icon icon="trash" />
</div>
<n8n-popover
effect="dark"
trigger="click"
placement="top"
:popper-style="{ width: '208px' }"

View file

@ -59,7 +59,6 @@ onBeforeUnmount(() => {
<template>
<N8nPopover
effect="dark"
trigger="click"
placement="top"
:popper-class="$style.popover"