Skip to content

Commit d796ad4

Browse files
author
Lukas Markeffsky
committed
rustdoc ui: adjust tooltip z-index to be above sidebar
1 parent e51e98d commit d796ad4

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
@@ -1046,7 +1046,7 @@ so that we can apply CSS-filters to change the arrow color in themes */
10461046
position: absolute;
10471047
top: 100%;
10481048
right: 0;
1049-
z-index: 2;
1049+
z-index: 101;
10501050
margin-top: 7px;
10511051
border-radius: 3px;
10521052
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)