Skip to content

Commit 6625001

Browse files
authored
Rollup merge of #128615 - notriddle:notriddle/anchor-a11y, r=GuillaumeGomez
rustdoc: make the hover trail for doc anchors a bit bigger https://rust-lang.zulipchat.com/#narrow/stream/266220-t-rustdoc/topic/Weird.20markdown.20heading.20rendering.3F r? `@GuillaumeGomez` ### Screenshots (the purple part is the padding, which the mouse can pass through to hover over it) | Before | After | |--|--| | ![image](https://github.com/user-attachments/assets/5070eebe-84ac-4f5d-8950-58664370191c) | ![image](https://github.com/user-attachments/assets/55340161-ad8a-41bd-a120-8cdab11f4af0)
2 parents 3a348d1 + eb2de64 commit 6625001

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/librustdoc/html/static/css/rustdoc.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@ a.doc-anchor {
930930
left: -17px;
931931
/* We add this padding so that when the cursor moves from the heading's text to the anchor,
932932
the anchor doesn't disappear. */
933-
padding-right: 5px;
933+
padding-right: 10px;
934934
/* And this padding is used to make the anchor larger and easier to click on. */
935935
padding-left: 3px;
936936
}

0 commit comments

Comments
 (0)