Repository navigation
Conversation
…link colour at rest, not only on hover; a coloured bubble underlines it instead
shubhook
marked this pull request as draft
December 4, 2026 08:15
shubhook
marked this pull request as ready for review
December 4, 2026 08:34
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #514
A bare URL such as
https://github.com/shubhooklooked like plain text in the message box and in the sender's own bubble.The detection already worked.
linkRangesfinds the address,MentionTextrenders it as an<a href>in the sent bubble and as a link span in the composer mirror, and a click opens it. The problem was CSS..link-pillsetcolor: inheritandtext-decoration: none, so the link had the same color as the text around it until the pointer was over it. Reply bubbles looked right because.chat-linkoverrides the color there.Changes, all in
src/styles.css:.link-pillnow uses--color-accent-text, the color reply links already use. Only the color changes, so the composer mirror's glyphs stay under the caret..user-bubble-colored, the link keeps the bubble's text color and gets a 1px underline at 40% of that color. The bubble background can be the accent color, and an accent-colored link would not show on it.No changes to remark plugins or link detection.
Screenshots
Composer:
Sent message:
Verification
Isolated fixture (
control-dusk ui launch, fake engine):draft https://github.com/shubhookin the composer. The link span computes torgb(11, 105, 204)againstrgb(28, 28, 28)text. Before the change both werergb(28, 28, 28).link "https://github.com/shubhook"in the accessibility tree, underlined at 1px incolor(srgb 1 1 1 / 0.4)on white text. Before the change it had no underline.window.open("https://github.com/shubhook").viteston the 28 test files that coverlink-pill,MentionText,link-ranges,styles.cssand the user bubble: 570 passed.Also checked by hand in a local dev build (screenshots above).