feat(ux-30): ensure touch targets exceed 44px across CartDrawer, Wiki, Contact, Footer and MobileBottomNav with regression tests
This commit is contained in:
1 parent
6d0dea07f8
commit
f5c970f82e
6 files changed
+157
-16
No files matched your search
@@ -112,7 +112,7 @@ export default function CartDrawer({ isOpen, onClose, onCheckout, onShopNavigate
|
||||
</div>
|
||||
<h3 id="cart-drawer-title" className="text-xl font-black text-medical-gray-900 italic">سبد خرید</h3>
|
||||
</div>
|
||||
<button aria-label="بستن سبد خرید" onClick={onClose} className="p-2 hover:bg-medical-gray-50 rounded-full transition-colors">
|
||||
<button aria-label="بستن سبد خرید" onClick={onClose} className="min-w-[44px] min-h-[44px] flex items-center justify-center p-2 hover:bg-medical-gray-50 rounded-full transition-colors cursor-pointer">
|
||||
<X className="w-6 h-6 text-medical-gray-400" />
|
||||
</button>
|
||||
</div>
|
||||
@@ -152,7 +152,7 @@ export default function CartDrawer({ isOpen, onClose, onCheckout, onShopNavigate
|
||||
type="button"
|
||||
aria-label={`کاهش تعداد ${item.product.nameFa || item.product.name}`}
|
||||
onClick={() => updateQuantity(item.product.id, item.quantity - 1)}
|
||||
className="p-1 hover:text-canina-blue transition-colors"
|
||||
className="min-w-[44px] min-h-[44px] flex items-center justify-center p-1 hover:text-canina-blue transition-colors cursor-pointer"
|
||||
data-testid="minus-btn"
|
||||
>
|
||||
<Minus className="w-3 h-3" />
|
||||
@@ -162,7 +162,7 @@ export default function CartDrawer({ isOpen, onClose, onCheckout, onShopNavigate
|
||||
type="button"
|
||||
aria-label={`افزایش تعداد ${item.product.nameFa || item.product.name}`}
|
||||
onClick={() => updateQuantity(item.product.id, item.quantity + 1)}
|
||||
className="p-1 hover:text-canina-blue transition-colors"
|
||||
className="min-w-[44px] min-h-[44px] flex items-center justify-center p-1 hover:text-canina-blue transition-colors cursor-pointer"
|
||||
data-testid="plus-btn"
|
||||
>
|
||||
<Plus className="w-3 h-3" />
|
||||
@@ -173,7 +173,7 @@ export default function CartDrawer({ isOpen, onClose, onCheckout, onShopNavigate
|
||||
aria-label={`حذف ${item.product.nameFa || item.product.name} از سبد خرید`}
|
||||
data-testid="cart-item-delete-btn"
|
||||
onClick={() => setDeleteConfirmId(item.product.id)}
|
||||
className="text-medical-gray-300 hover:text-red-500 transition-colors"
|
||||
className="min-w-[44px] min-h-[44px] flex items-center justify-center text-medical-gray-300 hover:text-red-500 transition-colors cursor-pointer"
|
||||
>
|
||||
<Trash2 className="w-4 h-4" />
|
||||
</button>
|
||||
|
||||
Reference in new issue
Block a user