-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
Buttons are getting stuck in the hovered state on iOS #77
Comments
Update: This happens only on iPad and Touch devices. |
It is due to the element having focus when pressed. Pressing elsewhere causes it then to lose focus. Remove the |
@IanLunn I've removed the both :active and :focus selector and tested on iPad. However the problem was there. |
This is expected browser behaviour although maybe we can work around it without the use of JavaScript. |
Just to update on this. When you press a button on iOS it is considered as being hovered over. Pressing the button a second time applies hover again so the effect never actually stops. JavaScript would be required to work around this (probably use of the Pointer Events API, active classes, etc) which is outside of the project scope. I may add this as an optional script in the future but for now, won't fix. |
Button in the "Background Transitions" section are getting stuck in the hovered state unless you click in empty space:
I'm not sure this is a purposeful feature. However I'd like to know how to remove this?
The text was updated successfully, but these errors were encountered: