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

Remove tooltip on click from like button #5513

Merged
merged 2 commits into from Apr 20, 2019
Merged

Remove tooltip on click from like button #5513

merged 2 commits into from Apr 20, 2019

Conversation

gautamig54
Copy link
Contributor

@gautamig54 gautamig54 commented Apr 18, 2019

Fixes #5497 (<=== Add issue number here)

Make sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!

  • PR is descriptively titled 📑 and links the original issue above 🔗
  • tests pass -- look for a green checkbox ✔️ a few minutes after opening your PR -- or run tests locally with rake test
  • code is in uniquely-named feature branch and has no merge conflicts 📁
  • screenshots/GIFs are attached 📎 in case of UI updation
  • ask @publiclab/reviewers for help, in a comment below

We're happy to help you get this ready -- don't be afraid to ask for help, and don't be discouraged if your tests fail at first!

If tests do fail, click on the red X to learn why by reading the logs.

Please be sure you've reviewed our contribution guidelines at https://publiclab.org/contributing-to-public-lab-software

Thanks!

@divyabaid16
Copy link
Contributor

Can you add a GIF for this @gautamig54
Thanks!

@plotsbot
Copy link
Collaborator

plotsbot commented Apr 18, 2019

2 Messages
📖 @gautamig54 Thank you for your pull request! I’m here to help with some tips and recommendations. Please take a look at the list provided and help us review and accept your contribution! And don’t be discouraged if you see errors – we’re here to help.
📖 It looks like you haven’t marked all the checkboxes. Help us review and accept your suggested changes by going through the steps one by one. If it is still a ‘Work in progress’, please include ‘[WIP]’ in the title.

Generated by 🚫 Danger

@gautamig54
Copy link
Contributor Author

@divyabaid16 Here you go!
Also, since the trigger for tooltip is set to be hover therefore it will close as soon as the mouse pointer leaves the like button.

ezgif com-video-to-gif

@divyabaid16
Copy link
Contributor

Awesome @gautamig54 😄

Co-Authored-By: gautamig54 <35326753+gautamig54@users.noreply.github.com>
@gautamig54
Copy link
Contributor Author

@publiclab/reviewers Kindly review this PR. Thanks!

@sashadev-sky
Copy link
Member

confirmed! So what this change does is it only shows the tooltip the first time the user hovers over the button, and then after that it won't show it again unless you reload. Previously, the tooltip just never went away until you left the page. Please see 2 gifs below demonstrating this. I think this change is fine and mergable!

Before:
tooltip

After:
tooltip2

@sashadev-sky
Copy link
Member

@gauravano @jywarren please review for merge

@jywarren
Copy link
Member

Fantastic!!!!!!

@jywarren jywarren merged commit fa5730c into publiclab:master Apr 20, 2019
SrinandanPai pushed a commit to SrinandanPai/plots2 that referenced this pull request May 5, 2019
* remove tooltip on click

* Update app/views/like/_like.html.erb

Co-Authored-By: gautamig54 <35326753+gautamig54@users.noreply.github.com>
digitaldina pushed a commit to digitaldina/plots2 that referenced this pull request May 12, 2019
* remove tooltip on click

* Update app/views/like/_like.html.erb

Co-Authored-By: gautamig54 <35326753+gautamig54@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tooltip doesn't disappear
6 participants