diff --git a/client/src/components/ChatInput.tsx b/client/src/components/ChatInput.tsx index 3b600e6..8521d66 100644 --- a/client/src/components/ChatInput.tsx +++ b/client/src/components/ChatInput.tsx @@ -25,11 +25,16 @@ function ChatInput({ sendMessage }: ChatInputProps) { return (
+ setMessage(e.target.value)} - placeholder="Message" + placeholder="Type a message" // this message is more descriptive than a simple "Message", therefore better for accessibility + aria-label="Chat message input" className="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500" />
diff --git a/client/src/components/ChatMenu.tsx b/client/src/components/ChatMenu.tsx index a971b01..bb5a1d0 100644 --- a/client/src/components/ChatMenu.tsx +++ b/client/src/components/ChatMenu.tsx @@ -5,9 +5,10 @@ function ChatMenu() { const { actions, state } = useChatState(); return ( -
+