-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix missing hints on GitHub / support popover
GitHub uses native popover for some dropdown menus. They are always rendered in the “top layer” which wins even against the highest z-index. This PR puts Link Hints in the top layer as well, so it can win against everything.
- Loading branch information
Showing
3 changed files
with
36 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title>top layer</title> | ||
</head> | ||
<body> | ||
<button popovertarget="popover-1">Open Popover 1</button> | ||
<button popovertarget="popover-2">Open Popover 2</button> | ||
<button onclick="dialog.showModal()">Open Dialog</button> | ||
|
||
<div popover id="popover-1"> | ||
popover 1: | ||
<a href="https://mozilla.org">link inside popover</a> | ||
</div> | ||
|
||
<div popover id="popover-2"> | ||
popover 2: | ||
<a href="https://mozilla.org">link inside popover</a> | ||
</div> | ||
|
||
<dialog id="dialog"> | ||
<a href="https://mozilla.org">link inside modal dialog</a> | ||
</dialog> | ||
</body> | ||
</html> |
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