Parcourir la source

minor updates

Torkel Ödegaard il y a 7 ans
Parent
commit
8a9582dad5

+ 1 - 6
packages/grafana-ui/src/components/Tooltip/_Tooltip.scss

@@ -20,11 +20,7 @@ $popper-margin-from-ref: 5px;
   background: $tooltipBackground;
   border-radius: $border-radius;
   box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
-  padding: 0px 8px;
-  height: 24px;
-  display: flex;
-  align-items: center;
-  //border: 1px #333333 solid;
+  padding: 3px 8px;
   color: $tooltipColor;
   font-weight: 500;
 
@@ -45,7 +41,6 @@ $popper-margin-from-ref: 5px;
   border-style: solid;
   position: absolute;
   margin: 0px;
-  display: none;
 }
 
 .popper__arrow {

+ 2 - 3
public/sass/_variables.dark.scss

@@ -307,9 +307,8 @@ $tooltipArrowWidth: 5px;
 $tooltipLinkColor: $link-color;
 $graph-tooltip-bg: $dark-1;
 
-$tooltipBackground: $popover-help-bg;
-$tooltipBackground:#e9edf2;
-$tooltipColor: #52545c;
+$tooltipBackground: $black;
+$tooltipColor: $text-color;
 $tooltipArrowColor: $tooltipBackground;
 $tooltipBackgroundError: $brand-danger;
 $tooltipBackgroundBrand: $brand-primary;

+ 1 - 1
public/sass/components/_tooltip.scss

@@ -8,8 +8,8 @@
   z-index: $zindex-tooltip;
   display: block;
   visibility: visible;
-  font-size: 11px;
   line-height: 1.4;
+  font-weight: 500;
   @include opacity(0);
 
   &.in {