diff --git a/components/features/bargain-ai.tsx b/components/features/bargain-ai.tsx index 6b5959d..39f3522 100644 --- a/components/features/bargain-ai.tsx +++ b/components/features/bargain-ai.tsx @@ -139,6 +139,7 @@ export function ProductAssistant({ productContext }: ProductAssistantProps) { variant="ghost" size="icon" className="h-6 w-6 text-background hover:text-background/80" + aria-label="Close product assistant" onClick={() => setIsOpen(false)} > @@ -201,6 +202,7 @@ export function ProductAssistant({ productContext }: ProductAssistantProps) { type="submit" size="icon" className="rounded-full h-8 w-8" + aria-label="Send message" disabled={isLoading || !input.trim()} > {isLoading ? ( diff --git a/components/features/cart-drawer.tsx b/components/features/cart-drawer.tsx index 475a691..834ae43 100644 --- a/components/features/cart-drawer.tsx +++ b/components/features/cart-drawer.tsx @@ -116,6 +116,7 @@ export function CartDrawer() { variant="outline" size="icon" className="h-7 w-7 rounded-none" + aria-label="Decrease quantity" onClick={() => updateQuantity(item.id, item.size, item.quantity - 1, item.color, item.comboGroupId)} > @@ -125,6 +126,7 @@ export function CartDrawer() { variant="outline" size="icon" className="h-7 w-7 rounded-none" + aria-label="Increase quantity" onClick={() => updateQuantity(item.id, item.size, item.quantity + 1, item.color, item.comboGroupId)} > @@ -135,6 +137,7 @@ export function CartDrawer() { variant="ghost" size="icon" className="h-7 w-7 self-start text-muted-foreground hover:text-foreground" + aria-label="Remove item" onClick={() => removeItem(item.id, item.size, item.color, item.comboGroupId)} > diff --git a/components/features/checkout-bargain.tsx b/components/features/checkout-bargain.tsx index ebc0fe4..5fd6559 100644 --- a/components/features/checkout-bargain.tsx +++ b/components/features/checkout-bargain.tsx @@ -294,6 +294,7 @@ export function CheckoutBargain({ cartItems, totalPrice, onApplyCoupon, appliedC variant="ghost" size="icon" className="h-6 w-6 text-white hover:bg-white/10" + aria-label="Close bargain chat" onClick={() => setIsOpen(false)} > @@ -421,6 +422,7 @@ export function CheckoutBargain({ cartItems, totalPrice, onApplyCoupon, appliedC type="submit" size="icon" className="rounded-none bg-red-accent text-white hover:bg-[#8E0000]" + aria-label="Send message" disabled={isLoading || !input.trim()} > diff --git a/components/layout/navbar.tsx b/components/layout/navbar.tsx index 22394bd..1a1fbcc 100644 --- a/components/layout/navbar.tsx +++ b/components/layout/navbar.tsx @@ -34,6 +34,7 @@ export function Navbar() { variant="ghost" size="icon" className="md:hidden mr-2" + aria-label="Toggle mobile menu" onClick={() => setShowMobileMenu(!showMobileMenu)} > {showMobileMenu ? : } @@ -71,10 +72,10 @@ export function Navbar() { autoFocus className="h-9 w-32 md:w-48 px-3 bg-secondary/50 border border-input rounded-none text-sm focus:outline-none focus:ring-1 focus:ring-ring" /> - -