-
Notifications
You must be signed in to change notification settings - Fork 230
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
Make tabs work with one tap on iOS #1050
Conversation
Remove the a:hover:before pseudo-class on tabs so that iOS doesn't treat the first tap as a hover.
// Add a class for iOS devices. This lets us disable some hover effects | ||
// since iOS will treat the first tap as a hover if it changes the DOM | ||
// content (e.g. using :before pseudo-elements). | ||
$('body').addClass('ios'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
trying to decide if it should be more specific like browser-ios
@rhamilto opinions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm good with IS_IOS.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
D'oh. I'm good with ios, too (thanks, @spadgett, for noticing my oversight).
otherwise LGTM |
k works for me [merge] |
Evaluated for origin web console merge up to e132668 |
Origin Web Console Merge Results: SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin_web_console/872/) (Base Commit: 7973c2b) |
Remove the
a:hover:before
pseudo-class on tabs so that iOS doesn't treat the first tap as a hover.Fixes #811