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

Workaround sticky buttons in webviews #17

Open
tlvince opened this issue May 18, 2015 · 0 comments
Open

Workaround sticky buttons in webviews #17

tlvince opened this issue May 18, 2015 · 0 comments

Comments

@tlvince
Copy link
Contributor

tlvince commented May 18, 2015

According to twbs/bootstrap#13049 (via twbs/bootstrap#12832) :hover styles aren't removed correctly in some mobile browsers.

In Nutsurv, we workaround this by resetting :hover (and :focus) and applying its style on :active:

  /* Workaround "sticky hover" bug */                                                                                                                           
  .btn-default:hover, .btn-default:focus  {                                                                                                                               
    background-color: white;                                                                                                                                              
  }                                                                                                                                                                       
  .btn-default:active {                                                                                                                                                   
    background-color: #e0e0e0;                                                                                                                                            
  } 

Perhaps this is another candidate for a mobile-specific theme?

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