From 8a026fa0d6b4b25b47bf903bcbc21df82d77cc56 Mon Sep 17 00:00:00 2001 From: Eric Zhang <56938909+theericzhang@users.noreply.github.com> Date: Sat, 28 Jan 2023 14:45:30 -0500 Subject: [PATCH] tabindex set on CartSheetButtonClose --- components/CartSheet/CartSheet.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/CartSheet/CartSheet.tsx b/components/CartSheet/CartSheet.tsx index 1f69741..71b718b 100644 --- a/components/CartSheet/CartSheet.tsx +++ b/components/CartSheet/CartSheet.tsx @@ -74,11 +74,15 @@ export default function CartSheet({ isStoreCartSheet }: TCartSheet) { dispatch(toggleIsOpenFromCartSheet())} aria-label="Close cart" + aria-hidden={!isOpenFromCartSheet} + tabIndex={isOpenFromCartSheet ? 0: -1} >