Skip to content

Commit

Permalink
tabindex set on CartSheetButtonClose
Browse files Browse the repository at this point in the history
  • Loading branch information
theericzhang committed Jan 28, 2023
1 parent 1cd16bb commit 8a026fa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/CartSheet/CartSheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,15 @@ export default function CartSheet({ isStoreCartSheet }: TCartSheet) {
<CartSheetWrapper
isOpenFromCartSheet={!!isOpenFromCartSheet}
isStoreCartSheet={!!isStoreCartSheet}
aria-hidden={!isOpenFromCartSheet}
tabIndex={isOpenFromCartSheet ? 0: -1}
>
<CartOverview isInCartSheet>
<CartSheetButtonClose
onClick={() => dispatch(toggleIsOpenFromCartSheet())}
aria-label="Close cart"
aria-hidden={!isOpenFromCartSheet}
tabIndex={isOpenFromCartSheet ? 0: -1}
>
<X />
</CartSheetButtonClose>
Expand Down

0 comments on commit 8a026fa

Please sign in to comment.