Skip to content

Commit

Permalink
fix(nx-dev): do not call getLayoutClassNames() on buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
bcabanes committed Aug 28, 2023
1 parent 34a7279 commit 85a5742
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nx-dev/ui-common/src/lib/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export function Button({
...props
}: ButtonProps & JSX.IntrinsicElements['button']): JSX.Element {
return (
<button {...props} className={getLayoutClassName({ className })}>
<button {...props} className={cx('inline-flex', className)}>
<ButtonInner variant={variant} size={size}>
{children}
</ButtonInner>
Expand Down Expand Up @@ -104,7 +104,7 @@ export const ButtonLink = forwardRef(function (
ref={ref}
href={href}
title={title}
className={getLayoutClassName({ className })}
className={cx('inline-flex', className)}
{...props}
>
<ButtonInner variant={variant} size={size}>
Expand Down

0 comments on commit 85a5742

Please sign in to comment.