Skip to content

Commit

Permalink
Merge 3ac6d2d into f8733bc
Browse files Browse the repository at this point in the history
  • Loading branch information
piofinn authored Sep 25, 2024
2 parents f8733bc + 3ac6d2d commit c78c927
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
16 changes: 16 additions & 0 deletions packages/jokul/src/components/tooltip/styles/tooltip.scss
Original file line number Diff line number Diff line change
Expand Up @@ -89,17 +89,33 @@ $_focus-ring-width: jkl.rem(2px);
@include jkl.motion("exit", "snappy");
transition-property: color;
cursor: pointer;
position: relative;
background-color: transparent;
padding: 0;
display: inline-flex;
align-items: center;
color: var(--button-color);
transform: translateY(max(0.16em, jkl.rem(4px))); // Cap på 4px
font-size: 1.2em;
border-radius: 9999px;

@include jkl.reset-outline;

&:hover {
--button-color: var(--jkl-color-text-interactive-hover);
}

&:focus-visible {
@include jkl.focus-outline(0);
}

&::after {
content: "";
position: absolute;
top: 50%;
left: 50%;
translate: -50% -50%;
min-width: 44px;
min-height: 44px;
}
}
16 changes: 16 additions & 0 deletions packages/tooltip/tooltip.scss
Original file line number Diff line number Diff line change
Expand Up @@ -89,17 +89,33 @@ $_focus-ring-width: jkl.rem(2px);
@include jkl.motion("exit", "snappy");
transition-property: color;
cursor: pointer;
position: relative;
background-color: transparent;
padding: 0;
display: inline-flex;
align-items: center;
color: var(--button-color);
transform: translateY(max(0.16em, jkl.rem(4px))); // Cap på 4px
font-size: 1.2em;
border-radius: 9999px;

@include jkl.reset-outline;

&:hover {
--button-color: var(--jkl-color-text-interactive-hover);
}

&:focus-visible {
@include jkl.focus-outline(0);
}

&::after {
content: "";
position: absolute;
top: 50%;
left: 50%;
translate: -50% -50%;
min-width: 44px;
min-height: 44px;
}
}

0 comments on commit c78c927

Please sign in to comment.