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

Help: Fix contact form tool tips #1456

Merged
merged 2 commits into from
Dec 14, 2015
Merged

Conversation

omarjackman
Copy link
Contributor

This pull request fixes #1433 by allowing SegmentedControls to use a custom title instead of the default toString that is implicitly called on the child nodes for each option.

How to test:
This requires you be in a group that has no available operators so that you can see the kayako ticket form

  1. Navigate to http://calypso.localhost:3000/help/contact
  2. Hover your mouse over one of the "How can we help" options.
  3. Notice how the tool tip that appears is the same as the main text on the option.

What to expect
screen shot 2015-12-10 at 12 54 39 am

Fixes #1433

@omarjackman omarjackman added Live Chat [Feature Group] Support All things related to WordPress.com customer support. labels Dec 10, 2015
@omarjackman omarjackman self-assigned this Dec 10, 2015
@omarjackman omarjackman force-pushed the fix/contact-form-tool-tips branch from 50304ac to f7ee720 Compare December 10, 2015 05:51
@omarjackman omarjackman added the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Dec 10, 2015
@@ -108,6 +108,10 @@ Boolean representing the selected visual state. `selected={ true }` creates a bl

Optional URL to navigate to when option is clicked.

`title`

Optional title to show when hovering over segmented control options.
Copy link
Contributor

Choose a reason for hiding this comment

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

Might be good to mention that the child content of the item will be displayed unless this is specified.

@rralian
Copy link
Contributor

rralian commented Dec 14, 2015

I wonder if we need titles at all here, considering the content is already text. Visually it seems distracting and kinda pointless to just see repetition of the same text when you hover over an item. So I'd say 🚢 this to get the production issue fixed, but we should spend a little time to look into the repercussions of removing the title attribute entirely.

@rralian rralian added [Status] Ready to Merge and removed [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels Dec 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature Group] Support All things related to WordPress.com customer support.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Help: Contact Form Tooltips Contain Extra Text
3 participants