Skip to content

Use translation key for aria-label="Close" in MenuItemModal #5

@mighty840

Description

@mighty840

Description

The MenuItemModal close button uses a hardcoded English aria-label="Close" instead of a translation key. The CartDrawer component already correctly uses t('cart.close') for its close button.

Files to Change

  • packages/storefront/src/components/MenuItemModal.tsx — line 191

Steps

  1. Import the useTranslation hook (if not already imported)
  2. Replace aria-label="Close" with aria-label={t('common.close')}
  3. Ensure the common.close key exists in all translation files

Effort

XS — one-line change

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions