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 >