From 2ba9596fa9ae48221bf325ee2cce2fb4f052a843 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 23 Mar 2026 13:05:36 +0000 Subject: [PATCH 1/2] Initial plan From 9abe0ccba0535865801fc747fb639eaf300ba4a8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 23 Mar 2026 13:09:38 +0000 Subject: [PATCH 2/2] fix: format ButtonBase.tsx to fix prettier lint error Co-authored-by: HiroAgustin <1458873+HiroAgustin@users.noreply.github.com> Agent-Logs-Url: https://github.com/primer/react/sessions/a420ce5d-2763-4968-9ded-d6f126ae4447 --- packages/react/src/Button/ButtonBase.tsx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/packages/react/src/Button/ButtonBase.tsx b/packages/react/src/Button/ButtonBase.tsx index 642035bc31d..9600a6f86b8 100644 --- a/packages/react/src/Button/ButtonBase.tsx +++ b/packages/react/src/Button/ButtonBase.tsx @@ -81,13 +81,7 @@ const ButtonBase = forwardRef(({children, as: Component = 'button', ...props}, f // when `loading` is `false`. // Then, the component re-renders in a way that the button will lose focus when switching between loading states. if={typeof loading !== 'undefined'} - className={ - block - ? classes.ConditionalWrapper - : variant === 'link' - ? classes.ConditionalWrapperLink - : undefined - } + className={block ? classes.ConditionalWrapper : variant === 'link' ? classes.ConditionalWrapperLink : undefined} data-loading-wrapper >