Skip to content

Add aria-label to quantity +/- buttons in CartDrawer and MenuItemModal #6

@mighty840

Description

@mighty840

Description

The quantity increment/decrement buttons in CartDrawer and MenuItemModal only contain + and - text with no aria-label. Screen reader users cannot tell which item's quantity is being adjusted.

Files to Change

  • packages/storefront/src/components/CartDrawer.tsx — lines 82–94
  • packages/storefront/src/components/MenuItemModal.tsx — lines 297–309

Steps

  1. Add aria-label attributes like "Decrease quantity for {item name}" and "Increase quantity for {item name}"
  2. Use translation keys for the labels (e.g., t('cart.decreaseQuantity', { item: name }))

Effort

XS — a few aria-label additions

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions