From 072aa0da4a91d2f2a1a334eb0b024f004fdd1a48 Mon Sep 17 00:00:00 2001 From: Sebastian Beltran Date: Wed, 20 Nov 2024 18:16:40 -0500 Subject: [PATCH] use tabindex when href is not available --- apps/site/components/Common/Button/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/site/components/Common/Button/index.tsx b/apps/site/components/Common/Button/index.tsx index cb7f77eed0c89..d2cf93800fea8 100644 --- a/apps/site/components/Common/Button/index.tsx +++ b/apps/site/components/Common/Button/index.tsx @@ -24,6 +24,7 @@ const Button: FC = ({ href={disabled ? undefined : href} aria-disabled={disabled} className={classNames(styles.button, styles[kind], className)} + tabIndex={!href ? 0 : undefined} {...props} > {children}