Skip to content

Commit 53637cd

Browse files
author
Lukas Markeffsky
committed
rustdoc ui: adjust tooltip z-index to be above sidebar
1 parent 650745c commit 53637cd

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

src/librustdoc/html/static/css/rustdoc.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -1059,7 +1059,7 @@ so that we can apply CSS-filters to change the arrow color in themes */
10591059
position: absolute;
10601060
top: 100%;
10611061
right: 0;
1062-
z-index: 2;
1062+
z-index: 101;
10631063
margin-top: 7px;
10641064
border-radius: 3px;
10651065
border: 1px solid var(--border-color);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// Check that the doctest info tooltips are above the sidebar.
2+
go-to: "file://" + |DOC_PATH| + "/test_docs/fn.foo.html"
3+
move-cursor-to: ".example-wrap.ignore .tooltip"
4+
wait-for: ".tooltip.popover"
5+
6+
// Move cursor to top left corner of the tooltip and check that it doesn't fade.
7+
move-cursor-to: ".tooltip.popover"
8+
wait-for: 100
9+
assert: ".tooltip.popover:not(.fade-out)"
10+
11+
move-cursor-to: (0, 0)
12+
wait-for: ".tooltip.popover.fade-out"

0 commit comments

Comments
 (0)