Skip to content

Commit

Permalink
title fix
Browse files Browse the repository at this point in the history
  • Loading branch information
denyssheremeta committed Jun 16, 2024
1 parent 6b2edb0 commit d6511af
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/pages/CartPage/CartItem/CartItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ export const CartItem: React.FC<Props> = ({
type="button"
aria-label="delete button"
className="cart-item__button-delete ico ico-close"
name="Delete from cart"
title="Delete from cart"
onClick={() => deleteItemFromCart(product.id)}
/>
<Link
Expand Down Expand Up @@ -63,13 +65,17 @@ export const CartItem: React.FC<Props> = ({
'ico-disabled-minus': quantity === 1,
})}
aria-label="minus"
name="Decrease amount"
title="Decrease amount"
onClick={() => decreaseAmount(product.id)}
/>
{quantity}
<button
type="button"
className="cart-item__button ico ico-plus"
aria-label="plus"
name="Increase amount"
title="Increase amount"
onClick={() => increaseAmount(product.id)}
/>
</div>
Expand Down

0 comments on commit d6511af

Please sign in to comment.