Skip to content

Commit

Permalink
Tooltip V2: Update the threshold value to match with the offset (#4446)
Browse files Browse the repository at this point in the history
* update the offset value in tooltip

* Create old-shirts-train.md

* snaps - still?
  • Loading branch information
broccolinisoup committed Mar 28, 2024
1 parent c2557d1 commit a3355a5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .changeset/old-shirts-train.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@primer/react": patch
---

Tooltipv2: Update the threshold value to match with the offset

2 changes: 1 addition & 1 deletion packages/react/src/TooltipV2/Tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const StyledTooltip = styled.span`
display: block;
right: 0;
left: 0;
height: 8px;
height: var(--overlay-offset, 0.25rem);
content: '';
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1984,7 +1984,7 @@ exports[`TextInput renders trailingAction icon button 1`] = `
display: block;
right: 0;
left: 0;
height: 8px;
height: var(--overlay-offset,0.25rem);
content: '';
}
Expand Down Expand Up @@ -3032,7 +3032,7 @@ exports[`TextInput renders trailingAction text button with a tooltip 1`] = `
display: block;
right: 0;
left: 0;
height: 8px;
height: var(--overlay-offset,0.25rem);
content: '';
}
Expand Down

0 comments on commit a3355a5

Please sign in to comment.