-
-
Notifications
You must be signed in to change notification settings - Fork 79k
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
iOS fix for role="button" elements; [fixes #15935] #15947
iOS fix for role="button" elements; [fixes #15935] #15947
Conversation
Fixes "clickability" issue (and more generally, the firing of events such as focus as well) for traditionally non-focusable elements with role="button" (see https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile) Fixes #15935
/cc @mdo |
I'm 👍 on this. |
Carousel and Tab also suffer from this. We added [data-toggle="collapse"], [data-toggle="tab"] {
cursor: pointer;
} to our site less. Can you add this to the pull request, otherwise I will create my own |
@slaneyrw You meant Collapse, not Carousel, right? |
@slaneyrw Both of those cases involve anchors with hrefs, so they should (and AFAICT do) work fine as-is, unless your markup is wrong or something. |
In order to be accessible though, the collapse toggles should be |
They already are. |
Yes..lol. collapse is used as the data-toggle value
|
what i meant was: if you follow our examples, you should already be using |
iOS fix for role="button" elements; [fixes #15935]
Add upstream patch comment for #15947
Fixes "clickability" issue (and more generally, the firing of events such as focus as well) for traditionally non-focusable elements with
role="button"
(see https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile)Fixes #15935