Skip to content

Commit

Permalink
fix(Tooltip): increase selector specificity (#660)
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkGenius authored May 11, 2023
1 parent fe05925 commit 1f53d8d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/components/Tooltip/Tooltip.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@ $block: '.#{variables.$ns}tooltip';
// prevent glitch between two nearby tooltip refs
pointer-events: none;

--yc-popup-border-width: 0;
--yc-popup-background-color: var(--yc-color-base-float-heavy);

&__content {
padding: 6px 12px;
color: var(--yc-color-text-light-primary);
}
}

// [class] for increasing specificity
#{$block}[class] {
--yc-popup-border-width: 0;
--yc-popup-background-color: var(--yc-color-base-float-heavy);
}

0 comments on commit 1f53d8d

Please sign in to comment.