diff --git a/.Jules/palette.md b/.Jules/palette.md new file mode 100644 index 0000000..7f119b6 --- /dev/null +++ b/.Jules/palette.md @@ -0,0 +1,3 @@ +## 2025-03-07 - Icon-only buttons lacking aria-labels +**Learning:** Found multiple instances where icon-only buttons (like Plus, Gift, Smile, Voice Call, Video Call) don't have aria-labels, which hurts accessibility for screen readers. Some use `title` but `aria-label` is much better for a11y. +**Action:** When finding icon-only buttons, add `aria-label` instead of or in addition to `title`. diff --git a/src/app/dashboard/messages/chat-interface.tsx b/src/app/dashboard/messages/chat-interface.tsx index 9e0dca8..92d37ec 100644 --- a/src/app/dashboard/messages/chat-interface.tsx +++ b/src/app/dashboard/messages/chat-interface.tsx @@ -234,6 +234,7 @@ export function ChatInterface({ size="icon" className="md:hidden -ml-2 h-8 w-8 rounded-full bg-muted text-muted-foreground mr-1" onClick={() => router.push("/dashboard/messages")} + aria-label="Back to messages" > @@ -258,10 +259,10 @@ export function ChatInterface({
- -
@@ -270,6 +271,7 @@ export function ChatInterface({ size="icon" className={cn("rounded-full transition-colors", showInfo ? "text-foreground bg-muted" : "hover:text-foreground hover:bg-muted")} title="Conversation Details" + aria-label="Conversation Details" onClick={() => setShowInfo(!showInfo)} > @@ -383,10 +385,10 @@ export function ChatInterface({ {/* Manage Buttons (Floating) */} {isMe && !isEditing && (
- -
@@ -400,7 +402,7 @@ export function ChatInterface({
-
@@ -415,10 +417,10 @@ export function ChatInterface({
- -