-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
Fix popover dismiss-on-next-click example #14156
Conversation
…/ tabindex Fixes #14038. Research supporting this choice of approach: https://gist.github.com/cvrebert/68659d0333a578d75372 Why not <button>? Even with a `tabindex` attribute, they don't gain focus when clicked upon in: * Mac OS X Firefox 30.0 * Mac OS X Safari 7.0.5
(I still stand in awe of all the research.) |
@hnrch02 And this is why the Web's claims of cross-platform compatibility are overblown. |
@cvrebert Word. But that's mostly due to the fact that the Web's cross-platform compatibility depends on third parties/vendors. |
Nobody has objected or given criticism, so I'm gonna merge this. |
Fix popover dismiss-on-next-click example
The research has been added to MDN for posterity: |
Thanks for the time put into this, it's very helpful. |
Resolves #114 Hopefully appropriately given my track record today.
…o fix display bug in safari - fixes #132. Bug: in Safari popover does not show preventing people from logging out or viewing their dashboard. Source: Known bug in bootstrap v3 and Safari - see twbs/bootstrap#14156 (for fix and link to underlying issue). Fixed by adding tabindex="0". NB: also checked in FF and FF seems fine though older FF may have an issue (FF also mentioned in the bootstrap issue).
Fixes #14038 by using
<a tabindex="0">
instead of<button>
.Demo: http://jsfiddle.net/v5L7m/3/
Supporting research: https://gist.github.com/cvrebert/68659d0333a578d75372
Also moves the "Multiple-line links" callout together with the rest of the general Popover callouts.
Also switches from
{trigger: 'focus'}
todata-trigger="focus"
.