From 94ac18bea357e7fa0080f16f3082c671b9d79670 Mon Sep 17 00:00:00 2001 From: Albina Starykova Date: Wed, 5 Jul 2023 18:22:23 +0300 Subject: [PATCH] Update styles for rich text link/doc tooltips --- client/src/components/Draftail/Tooltip/Tooltip.scss | 7 ++----- client/src/components/Draftail/decorators/TooltipEntity.js | 7 +++++-- .../decorators/__snapshots__/TooltipEntity.test.js.snap | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/client/src/components/Draftail/Tooltip/Tooltip.scss b/client/src/components/Draftail/Tooltip/Tooltip.scss index 54812ce79760..989682bc11f0 100644 --- a/client/src/components/Draftail/Tooltip/Tooltip.scss +++ b/client/src/components/Draftail/Tooltip/Tooltip.scss @@ -11,14 +11,11 @@ $tooltip-z-index: $draftail-tooltip-z-index; $tooltip-color-no: theme('colors.critical.100'); @mixin arrow--top { - margin-top: $tooltip-arrow-spacing; + margin-top: $tooltip-spacing; transform: translateX(calc(var(--w-direction-factor) * -50%)); &::before { - bottom: 100%; - inset-inline-start: 50%; - transform: translateX(calc(var(--w-direction-factor) * -50%)); - border-bottom-color: $tooltip-chrome; + content: none; } } diff --git a/client/src/components/Draftail/decorators/TooltipEntity.js b/client/src/components/Draftail/decorators/TooltipEntity.js index f9a3afcc5f29..80a2a86fdbc0 100644 --- a/client/src/components/Draftail/decorators/TooltipEntity.js +++ b/client/src/components/Draftail/decorators/TooltipEntity.js @@ -116,12 +116,15 @@ class TooltipEntity extends Component { ) : null} -