Skip to content

Commit

Permalink
fix(swirl): ensure position of tooltip is on top when possible
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Proß committed Apr 3, 2024
1 parent 2e5b47e commit 8faab1c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
& .form-control__tooltip {
display: none;
@media (--from-desktop-without-touch) {
display: inline-flex;
display: flex;
margin-left: var(--s-space-4);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,11 @@ export class SwirlFormControl {
{this.label}
{this.tooltip && this.labelPosition === "outside" && (
<span class="form-control__tooltip">
<swirl-tooltip content={this.tooltip} positioning="fixed">
<swirl-tooltip
content={this.tooltip}
positioning="fixed"
position="top"
>
<swirl-icon-help size={16} tabindex="0"></swirl-icon-help>
</swirl-tooltip>
</span>
Expand Down

0 comments on commit 8faab1c

Please sign in to comment.