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

First tooltip works, second tooltip shows both old and new-style popups #3082

Closed
markalfred opened this issue Aug 22, 2013 · 2 comments
Closed
Assignees

Comments

@markalfred
Copy link

This issue is similar to issue #2813.

Using unique data-tooltip values will allow tooltips to show unique messages, however, if two tooltips (correctly) show the same value, the second tooltip will not suppress the old-style, yellow box tooltip.

<a href="header.com" data-tooltip="header" title="This is a header">Header</a>
<ul>
  <li><a href="list-item.com" data-tooltip="list-item" title="This is a list item">List Item 1</a></li>
  <li><a href="list-item.com" data-tooltip="list-item" title="This is a list item">List Item 2</a></li>
</ul>

In this example, the two list items should show the same tooltip. We should be able to assign a single data-tooltip value to these items. When we do, it works almost as expected... until the second list-item is hovered.

headerli1li2

Assigning a unique data-tooltip value resolves the issue completely.

<a href="header.com" data-tooltip="header" title="This is a header">Header</a>
<ul>
  <li><a href="list-item.com" data-tooltip="list-item1" title="This is a list item">List Item 1</a></li>
  <li><a href="list-item.com" data-tooltip="list-item2" title="This is a list item">List Item 2</a></li>
</ul>

But this can be cumbersome, and it no longer allows any tooltip items to be re-used -- every single tooltip has to be its own unique item.

Chrome  v28.0.1500.95
OSX  v10.8.4, 
Foundation  v4.3.1
@seantimm
Copy link
Contributor

Hey @markalfred, the tooltip component is specifically designed to treat this as an ID, so it's not surprising that you would experience strange behavior when attempting to reuse the same ID. You'll notice in the documentation that it doesn't even show a value getting assigned to the data-tooltip (since it will be auto-generated and avoid problems like this).

That being said, I can definitely see the value in sharing a tooltip instance, but I think we need some significant retooling of how things work before this would be possible.

If you're passionate about seeing this changed, you might want to add your suggestion to the growing F5 Wishlist at #3100.

Since this behavior is as expected, I'll close this ticket.

@markalfred
Copy link
Author

Understood, thanks for the response, @seantimm!

@vinayraghu vinayraghu mentioned this issue Aug 27, 2013
33 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants