Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chat component: Add contrast to links #8279

Merged
merged 2 commits into from
Sep 29, 2016
Merged

Conversation

jasmussen
Copy link
Member

@jasmussen jasmussen commented Sep 28, 2016

This is a tiny PR to adjust the link colors for responses in the chat to show more contrast against their background.

Instructions:

  • make run Calypso
  • Open "Support Chat" in the bottom of the sidebar
  • Type a message
  • In a separate browser window, as a proxied Automattician, log into https://happychat.io, pick up the chat
  • Type out a hyperlink as a chat message
  • Tab back to the Calypso tab and verify link contrast is legible in the blue chat bubble from Support

Screenshot:

screen shot 2016-09-28 at 16 17 34

This is a tiny PR to adjust the link colors for responses in the chat to show more contrast against their background.
@jasmussen jasmussen added [Type] Enhancement Changes to an existing feature — removing, adding, or changing parts of it [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. Happychat labels Sep 28, 2016
@matticbot
Copy link
Contributor

@lamosty
Copy link
Contributor

lamosty commented Sep 28, 2016

Can you add testing instructions and a screenshot please? :)

@jasmussen
Copy link
Member Author

Great point, sorry for forgetting that. Have updated the post!

@@ -284,10 +284,25 @@
padding: 0 8px;
margin: 6px 0;

a {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we prefer named class selectors instead of targeting HTML elements. I thought it's written in our CSS guidelines but I can't find it now. :D

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would be an exception since we don't necessarily control the markup that is rendered in the chats.

Copy link
Contributor

@lamosty lamosty Sep 29, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, how so? If somebody writes a link, we are the ones who control how the link gets rendered; as a a element with this and that props and class names. Or do I get this wrong? Isn't it our service, our code?

}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need this blank line?

@lamosty
Copy link
Contributor

lamosty commented Sep 28, 2016

Thanks for adding the instructions and screenshot!

First thing first — the chat is awesome! I'm seeing it for the first time and it's really nice. Great work there!

I think the links are legible enough now.

Except the two minor things I pointed out, I think this is ready to be merged.

@lamosty lamosty added [Status] Needs Author Reply and removed [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels Sep 28, 2016
@johngodley
Copy link
Member

Whitespace cleanup looks consistent now

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Happychat [Type] Enhancement Changes to an existing feature — removing, adding, or changing parts of it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants