Comment buttons show wrong hover tooltip "Chat" instead of "Kommentare" #44
Labels
No labels
bug
discussion
enhancement
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
edufeed/edufeed-app#44
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Symptom
Hovering the comment toggle (speech-bubble button with comment count) on a post shows the native browser tooltip "Chat" — but the button opens the comments section, not a chat.
Root cause
src/lib/components/icons/social/ChatIcon.sveltehas a default proptitle = 'Chat'.Icon.svelterenders that as an SVG<title>child +aria-label, which produces the native hover tooltip. All comment-count surfaces use<ChatIcon />without overridingtitle, so they inherit "Chat":src/lib/components/notes/NoteCard.svelte:128— the comment toggle from the screenshotsrc/lib/components/article/ArticleCard.svelte:289src/lib/components/calendar/CalendarEventCard.svelte:416src/lib/components/educational/AMBResourceCard.svelte:470src/lib/components/comments/CommentThread.svelte:73,90Fix direction
Pass a localized title (e.g. existing
m.comments_show()→ "Kommentare" / "Comments") at the comment-button call sites, or default the icon title to empty and set propertitle/aria-labelon the buttons. Also affects screen-reader labels (aria-label="Chat").Fixed in
06a13b42, merged to dev.Verified in the running app via Playwright: hover title reads "Comments", switches to "Hide Comments" when the section is open.