From 1a1be49640a8d69a9255c170ce7f9fb83647b88d Mon Sep 17 00:00:00 2001 From: Dylan Smith Date: Thu, 1 Feb 2024 11:57:18 +0000 Subject: [PATCH 1/3] Change Tooltip border-radius from 3px to 6px --- src/Tooltip/Tooltip.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tooltip/Tooltip.tsx b/src/Tooltip/Tooltip.tsx index a2b1de01bde..94b04a58d2e 100644 --- a/src/Tooltip/Tooltip.tsx +++ b/src/Tooltip/Tooltip.tsx @@ -42,7 +42,7 @@ const TooltipBase = styled.span` pointer-events: none; content: attr(aria-label); background: ${get('colors.neutral.emphasisPlus')}; - border-radius: ${get('radii.1')}; + border-radius: ${get('radii.2')}; opacity: 0; } From 925604fadd565b88d7fecef800c649d0ea551ef4 Mon Sep 17 00:00:00 2001 From: Dylan Smith Date: Thu, 1 Feb 2024 12:33:44 +0000 Subject: [PATCH 2/3] Add changeset --- .changeset/violet-ligers-double.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/violet-ligers-double.md diff --git a/.changeset/violet-ligers-double.md b/.changeset/violet-ligers-double.md new file mode 100644 index 00000000000..204323bcc87 --- /dev/null +++ b/.changeset/violet-ligers-double.md @@ -0,0 +1,5 @@ +--- +'@primer/react': patch +--- + +Increase Tooltip border-radius to match Primer View Components From 9cf4cf31c125ca6f7fd7878fccc30fc664a5c370 Mon Sep 17 00:00:00 2001 From: Josh Black Date: Tue, 6 Feb 2024 14:11:44 -0600 Subject: [PATCH 3/3] test: update snapshots --- src/__tests__/__snapshots__/TextInput.test.tsx.snap | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/__tests__/__snapshots__/TextInput.test.tsx.snap b/src/__tests__/__snapshots__/TextInput.test.tsx.snap index 7916cf5aa94..543d4263c15 100644 --- a/src/__tests__/__snapshots__/TextInput.test.tsx.snap +++ b/src/__tests__/__snapshots__/TextInput.test.tsx.snap @@ -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; } @@ -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; }