Skip to content

Commit

Permalink
fix(@air/zephyr): allowing baseStyles in button link as well
Browse files Browse the repository at this point in the history
  • Loading branch information
andyhqtran committed Jan 26, 2022
1 parent c109b5e commit 54689a6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/zephyr/src/ButtonLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ export const ButtonLink = forwardRefWithAs<NonSemanticButtonLinkProps, 'button'>
return (
<Box
as={as}
tx={{
// @ts-ignore - Allowing it here
__baseStyles={{
display: 'inline-block',
outline: 'none',
background: 'transparent',
Expand All @@ -69,11 +70,11 @@ export const ButtonLink = forwardRefWithAs<NonSemanticButtonLinkProps, 'button'>
'&:focus-visible': {
boxShadow: `0 0 0 3px ${theme.colors.focus}`,
},
...tx,
}}
className={disabled ? 'disabled' : ''}
ref={ref}
onClick={disabled ? noop : onClick}
tx={tx}
variant={variant}
{...buttonProps}
{...restOfProps}
Expand Down

0 comments on commit 54689a6

Please sign in to comment.