Skip to content

Commit

Permalink
Merge pull request #932 from SwedbankPay/feature/SWED-2390-bugfix_too…
Browse files Browse the repository at this point in the history
…ltip

SWED-2390 fix style tooltips position bug
  • Loading branch information
goldenraphti authored Jan 23, 2024
2 parents 2f55e0b + 91f02b5 commit 1f5bce7
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/less/components/tooltip.less
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
.tooltip {
position: relative;
cursor: pointer;

&:hover {
border-color: @brand-secondary;
border-color: var(--brand-secondary);
}

&:focus-visible,
&:active {
outline: 2px solid @brand-secondary;
outline: 2px solid var(--brand-secondary);
}

&.isVisible {
Expand Down Expand Up @@ -41,8 +44,8 @@
max-width: 250px;
top: -8px;
transform: translateX(-50%) translateY(-100%);
background: @white;
color: @brand-secondary;
background: var(--white);
color: var(--brand-secondary);
text-align: center;
font-size: 0.875rem;
line-height: 1.5;
Expand Down

0 comments on commit 1f5bce7

Please sign in to comment.