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

FloatingActionButton doesn't leave hover state #4493

Closed
hoschi opened this issue Jun 14, 2016 · 4 comments
Closed

FloatingActionButton doesn't leave hover state #4493

hoschi opened this issue Jun 14, 2016 · 4 comments
Labels
component: Fab The React component. duplicate This issue or pull request already exists

Comments

@hoschi
Copy link

hoschi commented Jun 14, 2016

Problem description

After onTouchTap was handled, button doesn't leave hover state, until you hove it once again.

Steps to reproduce

  • go over button, hover style takes place
  • click button, new tab is opened
  • go back to old tab
  • expected: button is in normal state
  • actual: button is in hover satte

Versions

  • Material-UI: 15.0 (commit: 06667b5)
  • React: 15.1.0
  • Browser: Chrome (Linux) 51.0.2704.79 (64-bit)

Images & references

Gist with modified code of example (commit see above): https://gist.github.com/hoschi/21e5fc25646615cf2ac153487f181b8e

hover problem - floating action button

@ayw818
Copy link

ayw818 commented Jun 21, 2016

I am seeing a similar issue.

It seems related to #1495.

For us, we are disabling the button onTouchTap. When we reset disabled to false, the button still has the hover background color. It returns to the normal color when you hover over and then away. Note, it is not consistently reproducible, but it seems to be trigged if you leave the button from the top or bottom. It seems to properly resent when you leave the button from the left or right. You can see this in the gif below.

My current workaround (not ideal) is to just set the hoverColor to white (to match the flatButton color) so it looks the same.

button hover not going away

@ashl1
Copy link

ashl1 commented Sep 23, 2016

Possible solution in PR #5077 came from #5076

@hoschi
Copy link
Author

hoschi commented Oct 7, 2016

@ashl1 thanks for the notification, I'll look into it.

@oliviertassinari oliviertassinari added the duplicate This issue or pull request already exists label Jul 28, 2017
@oliviertassinari
Copy link
Member

Seems to be a duplicate of #5076.

@oliviertassinari oliviertassinari marked this as a duplicate of #5076 Jul 28, 2017
@oliviertassinari oliviertassinari added the component: Fab The React component. label Aug 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: Fab The React component. duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

4 participants