Skip to content

Commit

Permalink
Rollup merge of #104319 - GuillaumeGomez:fix-non-clickable-source-lin…
Browse files Browse the repository at this point in the history
…k, r=notriddle

Fix non clickable source link

Fixes #104313.

It was also fixed in #104177. If #104177 is merged first, I'll simply remove the first commit to keep the test.

r? ``@notriddle``
  • Loading branch information
GuillaumeGomez authored Nov 12, 2022
2 parents f48dba1 + c645d3e commit d532d67
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/librustdoc/html/static/css/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,6 @@ h4.code-header {
font-weight: 600;
margin: 0;
padding: 0;
/* position notable traits in mobile mode within the header */
position: relative;
}

#crate-search,
Expand Down
5 changes: 5 additions & 0 deletions src/test/rustdoc-gui/src-font-size.goml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,8 @@ assert-css: (".impl.has-srclink .code-header", {"font-size": "18px", "font-weigh
// Check the impl items.
assert-css: (".impl-items .has-srclink .srclink", {"font-size": "16px", "font-weight": 400}, ALL)
assert-css: (".impl-items .has-srclink .code-header", {"font-size": "16px", "font-weight": 600}, ALL)

// Check that we can click on source link
store-document-property: (url, "URL")
click: ".impl-items .has-srclink .srclink"
assert-document-property-false: {"URL": |url|}

0 comments on commit d532d67

Please sign in to comment.