Skip to content

Commit 072aa0d

Browse files
committed
use tabindex when href is not available
1 parent a6a1660 commit 072aa0d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apps/site/components/Common/Button/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const Button: FC<ButtonProps> = ({
2424
href={disabled ? undefined : href}
2525
aria-disabled={disabled}
2626
className={classNames(styles.button, styles[kind], className)}
27+
tabIndex={!href ? 0 : undefined}
2728
{...props}
2829
>
2930
{children}

0 commit comments

Comments
 (0)