Skip to content

Commit

Permalink
feat: fixed runtime css issue of tooltip gatsby
Browse files Browse the repository at this point in the history
  • Loading branch information
praneeth-rdy committed Dec 7, 2024
1 parent c36f486 commit 021819a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/styles/css/components/core/tooltip.css
Original file line number Diff line number Diff line change
Expand Up @@ -56,28 +56,28 @@
}

/* Position variants */
.tooltip-top {
[class*="tooltip-"].tooltip-top {
bottom: 100%;
left: 50%;
transform: translateX(-50%) translateY(10px);
margin-bottom: 8px;
}

.tooltip-bottom {
[class*="tooltip-"].tooltip-bottom {
top: 100%;
left: 50%;
transform: translateX(-50%) translateY(-10px);
margin-top: 8px;
}

.tooltip-left {
[class*="tooltip-"].tooltip-left {
right: 100%;
top: 50%;
transform: translateY(-50%) translateX(10px);
margin-right: 8px;
}

.tooltip-right {
[class*="tooltip-"].tooltip-right {
left: 100%;
top: 50%;
transform: translateY(-50%) translateX(-10px);
Expand All @@ -103,7 +103,7 @@
border-style: solid;
}

.light .tooltip-top::after {
.light [class*="tooltip-"].tooltip-top::after {
top: 100%;
left: 50%;
transform: translateX(-50%);
Expand Down Expand Up @@ -139,7 +139,7 @@
border-style: solid;
}

.dark .tooltip-top::after {
.dark [class*="tooltip-"].tooltip-top::after {
top: 100%;
left: 50%;
transform: translateX(-50%);
Expand Down

0 comments on commit 021819a

Please sign in to comment.