From baac4d91538d2253069f44a941be2a6d433f751d Mon Sep 17 00:00:00 2001 From: mkpaz Date: Thu, 25 May 2023 21:59:00 +0400 Subject: [PATCH] Fix Tooltip inherits font properties from parent node --- styles/src/components/_tooltip.scss | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/styles/src/components/_tooltip.scss b/styles/src/components/_tooltip.scss index 7e30349..1c6bb06 100755 --- a/styles/src/components/_tooltip.scss +++ b/styles/src/components/_tooltip.scss @@ -14,8 +14,10 @@ $padding-y: cfg.$padding-y !default; .tooltip { -fx-background-color: $color-border, $color-bg; -fx-background-insets: 0, cfg.$border-width; - -fx-text-fill: $color-fg; -fx-background-radius: cfg.$border-radius, cfg.$inner-border-radius; + -fx-text-fill: $color-fg; + -fx-font-size: cfg.$font-default; + -fx-font-weight: normal; -fx-padding: $padding-y $padding-x $padding-y $padding-x; -fx-opacity: $opacity; @include effects.shadow(-color-shadow-default, cfg.$popup-shadow-radius, cfg.$popup-shadow-spread);