forked from git/git-scm.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
As per https://webkit.org/b/22261#c68, the Safari browser never gives buttons the focus. This breaks the expectation of git-scm.com's sidebar button that is shown on small screens: clicking on it will never open that sidebar and navigation is made harder than necessary by that. The solution, as per the hint at the incredibly helpful post at https://stackoverflow.com/questions/42758815/safari-focus-event-doesnt-work-on-button-element#53157834 is to turn the <button> into a <div tabindex="1">. That way, it works even on iPhones. With minor style adjustments, the button even looks the same as before! Reported-by: Toon Claes <[email protected]> Signed-off-by: Johannes Schindelin <[email protected]>
- Loading branch information
Showing
4 changed files
with
25 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters