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

Stuck hover state for touch screen devices #672

Open
thedeveloperr opened this issue Nov 17, 2021 · 1 comment
Open

Stuck hover state for touch screen devices #672

thedeveloperr opened this issue Nov 17, 2021 · 1 comment

Comments

@thedeveloperr
Copy link
Contributor

Steps to reproduce:

  1. Open this link in a touch screen device or chrome's virtual device: http://aries.glints.design/?path=/docs/general-button--solid-blue#variants
  2. Click on the Ghost variant button.
  3. Now after clicking the Button background remains Blue. Expected behaviour: Background should return to white after clicking on it.

Reason seems to be the style get stuck in hover state on touch screen devices.

@thedeveloperr
Copy link
Contributor Author

Using something similar to should solve the problem:

@media (hover: hover) {
  &:hover {
    /* add hover state styles here */
  }
}

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

1 participant