Skip to content

Commit 669155c

Browse files
Rollup merge of rust-lang#104319 - GuillaumeGomez:fix-non-clickable-source-link, r=notriddle
Fix non clickable source link Fixes rust-lang#104313. It was also fixed in rust-lang#104177. If rust-lang#104177 is merged first, I'll simply remove the first commit to keep the test. r? `@notriddle`
2 parents ac21592 + c645d3e commit 669155c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

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

-2
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,6 @@ h4.code-header {
183183
font-weight: 600;
184184
margin: 0;
185185
padding: 0;
186-
/* position notable traits in mobile mode within the header */
187-
position: relative;
188186
}
189187

190188
#crate-search,

src/test/rustdoc-gui/src-font-size.goml

+5
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,8 @@ assert-css: (".impl.has-srclink .code-header", {"font-size": "18px", "font-weigh
99
// Check the impl items.
1010
assert-css: (".impl-items .has-srclink .srclink", {"font-size": "16px", "font-weight": 400}, ALL)
1111
assert-css: (".impl-items .has-srclink .code-header", {"font-size": "16px", "font-weight": 600}, ALL)
12+
13+
// Check that we can click on source link
14+
store-document-property: (url, "URL")
15+
click: ".impl-items .has-srclink .srclink"
16+
assert-document-property-false: {"URL": |url|}

0 commit comments

Comments
 (0)