Skip to content

Commit

Permalink
Change Tooltip border-radius from 3px to 6px (#4204)
Browse files Browse the repository at this point in the history
* Change Tooltip border-radius from 3px to 6px

* Add changeset

* test: update snapshots

---------

Co-authored-by: Josh Black <joshblack@github.com>
Co-authored-by: Josh Black <joshblack@users.noreply.github.com>
  • Loading branch information
3 people committed Feb 6, 2024
1 parent a2d8165 commit da4469d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/violet-ligers-double.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@primer/react': patch
---

Increase Tooltip border-radius to match Primer View Components
2 changes: 1 addition & 1 deletion src/Tooltip/Tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const TooltipBase = styled.span<SxProp>`
pointer-events: none;
content: attr(aria-label);
background: ${get('colors.neutral.emphasisPlus')};
border-radius: ${get('radii.1')};
border-radius: ${get('radii.2')};
opacity: 0;
}
Expand Down
4 changes: 2 additions & 2 deletions src/__tests__/__snapshots__/TextInput.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1943,7 +1943,7 @@ exports[`TextInput renders trailingAction icon button 1`] = `
pointer-events: none;
content: attr(aria-label);
background: var(--bgColor-emphasis,var(--color-neutral-emphasis-plus,#24292f));
border-radius: 3px;
border-radius: 6px;
opacity: 0;
}
Expand Down Expand Up @@ -3027,7 +3027,7 @@ exports[`TextInput renders trailingAction text button with a tooltip 1`] = `
pointer-events: none;
content: attr(aria-label);
background: var(--bgColor-emphasis,var(--color-neutral-emphasis-plus,#24292f));
border-radius: 3px;
border-radius: 6px;
opacity: 0;
}
Expand Down

0 comments on commit da4469d

Please sign in to comment.