https://linear.app/comm/issue/ENG-869/thread-list-hover-background-is-wrong-color, update the hover color
before:
after:
Differential D3421
[web] [fix] hover state background color on thread list • benschac on Mar 14 2022, 9:32 AM. Authored by Tags None Referenced Files
Details https://linear.app/comm/issue/ENG-869/thread-list-hover-background-is-wrong-color, update the hover color before: after: hover color should match figma
Diff Detail
Event TimelineComment Actions Huh it looks like this is what it is in the design, but it seems odd to me that the hover background color is so much brighter than the active thread background color. Accepting but adding @ashoat as blocking reviewer just to give it another look Comment Actions I agree this looks weird, maybe we should flip them, so that the selected state is higher-contrast than the hover state? What do you all think? Comment Actions I flipped the colors. I don't think this will really work with the updated mark and unread styling. Marking this diff as Needs Review to get it in your queue ashoat even though there aren't code changes. Just want to make sure you see this gif / screenshot. Comment Actions Looks good to me!
Not sure what you're referring to, or what the issue would be. Can you clarify? Back to you to make changes Comment Actions Adding a screenshot here. Clarifying:
Comment Actions Followed up with a comment about how this color switch will adversely effect the mark as unread button. Lets let IRL if there's still confusion and avoid churn. Comment Actions Ah yeah, I can see that design doesn't look good, with the mark-as-unread background being the same as the ChatThreadListItem background. What I don't understand, is that my suggestion was just to flip hover and selected state... so are you're saying that in the Figma design, one of either the hover state or the selected state has the same color as the mark-as-unread background? Or does the Figma design simply not cover both hover state and selected state? If the Figma design only has a design for one, then we can just make the hover state and the selected state the same. If it has a design for both, but one of them has the same background as the mark-as-unread button, then we'll need to figure out a new design. Comment Actions
Yes. If we flip the colors per your suggestion. the selected state will have the same background as mark as unread causing a visual regression. If we leave the selected color and hover color as they are in figma, we will not have an issue. To be even more explicit:
If we flip the hover and selected background, mark as unread background will be the same color as the selected background.
Figma covers both, the flipped color solution will break the visual separation of mark as unread.
If we look at slack: signal: telegram: discord (but it's less pronounced): All follow this same pattern, the selected item is bright, hovered item is dim. Comment Actions Talked about this in person, @benschac is right in pointing out that flipping this will make the design of the mark-as-unread button look weird. The reason the original design from Alicja doesn't have this problem is that there is no way to have mark-as-unread appear when a ChatThreadListItem isn't in the hover state. If the user's pointer leaves ChatThreadListItem, then the mark-as-unread button disappears – which avoids a scenario where the mark-as-unread-button is laid over the selected state. That said, I still feel strongly that Alicja's decision to make hover state higher-contrast than selected state is weird. The designs @benschac shared above reinforce this – in all of the examples, selected state is higher-contrast than hover state. I still think we should flip the designs for hover state and selected state here. To address the issue with the mark-as-unread button having the same background color, I think we should just change the colors for the mark-as-unread (so that they don't actually match Alicja's design).
Comment Actions The gif doesn't cover the mark-as-unread button. Can you share a screenshot to confirm that the contrast looks good? Comment Actions Yes, I'll update the mark as unread diff though (which is in this stack). This diff is specifically addressing the hover and selection states. Comment Actions Accepting based on the animated GIF above. The screenshots in the diff description still seem wrong, but I think those are outdated? Might be good to update the diff description (replace old screenshots with new animated GIF), so that the Git commit (once landed) has the correct visual |