Closed
Description
Pull request: #701 · Part of: #703 (the library and editor update where this was found)
Overview
In Huddle, a link inside your own message is invisible: it is drawn in the same colour as the message bubble. A message that mixes text and a link shows a gap where the link should be, and a message that is only a URL looks like an empty bubble. The link is still there and still clickable, it just cannot be seen. A fix is in PR #701.
Current State
- Your own messages use the chat component's "user" bubble, whose background is the brand's
primary-800colour (bg-primary-800inChatBubble,vendor/ui/src/components/AI/AIMessage.tsx). - Markdown links are rendered with
text-primary-800in light mode (vendor/ui/src/components/SuperChat/render/createMarkdownRenderer.tsx). Link and bubble are therefore the same colour. - It affects every brand colour, since both sides use the same token: orange on the default brand, blue on others.
- Dark mode was readable before the fix (links there use
primary-300), so the bug shows in light mode only. - Links in other people's messages are fine: their bubble is neutral grey.
- Bare URLs are affected the same way as
[text](url)links, because pasted URLs are auto-linked. - The bug is on
maintoday and predates PR Sync @mieweb/ui With Upstream Main and Move Kerebron to 0.8.12 #701; it was found while comparing screenshots for that PR. - Steps to reproduce:
- Switch to light mode.
- Open Huddle and post a message containing only a URL, for example a link to a pull request.
- The message appears as an empty coloured bubble.
Proposed Changes
1. Make Links in the User Bubble Readable
- In the library's user bubble, links take the bubble's own text colour (white) and keep their underline, in light and dark mode, including on hover.
- Make the change in
@mieweb/ui(thevendor/uibranch), not as a TimeHuddle override, so it goes upstream with the SuperChat PR. - Rebuild
vendor/mieweb-ui.tgzso the app picks it up.
2. Leave Other Links Alone
- Links in other people's messages, in the editor and elsewhere keep their current colours.
Acceptance Criteria
- A link in your own Huddle message is readable in light mode
- A message that is only a URL shows the URL, not an empty bubble
- The link is readable in dark mode and on hover
- The link keeps its underline so it still reads as a link
- Links in other people's messages look the same as before
- It holds for a non-default brand colour
- The fix is in
vendor/uiand the tarball is rebuilt
Out of Scope (for Now)
- The Copy button on code blocks in your own bubble, which is also hard to see in light mode
- A wider contrast review of the chat bubbles across brands
- Changing the bubble colour itself
Activity