Skip to content

Commit d88392d

Browse files
Fix wrong font being used for tooltips i icons
1 parent e1b9081 commit d88392d

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1838,6 +1838,10 @@ instead, we check that it's not a "finger" cursor.
18381838
border-right: 3px solid var(--target-border-color);
18391839
}
18401840

1841+
a.tooltip {
1842+
font-family: var(--font-family);
1843+
}
1844+
18411845
.code-header a.tooltip {
18421846
color: inherit;
18431847
margin-right: 15px;

tests/rustdoc-gui/src/test_docs/lib.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -767,3 +767,17 @@ pub mod impls_indent {
767767
pub fn bar() {}
768768
}
769769
}
770+
771+
pub mod tooltips {
772+
pub struct X;
773+
774+
impl X {
775+
pub fn bar() -> Vec<u8> {
776+
Vec::new()
777+
}
778+
}
779+
780+
pub fn bar() -> Vec<u8> {
781+
Vec::new()
782+
}
783+
}

0 commit comments

Comments
 (0)