-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make Run button visible on hover #92058
Conversation
Some changes occurred in HTML/CSS/JS. |
r? @CraftSpider (rust-highfive has picked a reviewer for you, use r? to override) |
Looks good to me. Please add a GUI test. |
I thought we were going to remove this button altogether? |
From the metrics, it seemed like a lot of people were going to the rust playground from doc.rust-lang.org, so I also understood it like @jsha. But maybe I misunderstood... |
Yep, this was also my takeaway. That doesn't have to mean we keep it, but it means is some constituency for keeping it and I don't feel strongly enough to drive a process of removing it entirely. This feels like a nice easy middle ground. |
Ok, seems like a good starting place :) |
Added a GUI test! |
@GuillaumeGomez bump on this. :-) |
@@ -0,0 +1,4 @@ | |||
goto: file://|DOC_PATH|/test_docs/fn.foo.html | |||
assert-css: (".test-arrow", {"visibility": "hidden"}) | |||
move-cursor-to: ".test-arrow" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move-cursor-to: ".test-arrow" | |
move-cursor-to: ".example-wrap" |
This slightly reduces the noisiness of doc pages, making them easier to read.
Thanks! @bors: r+ rollup |
📌 Commit 6409f0d has been approved by |
…askrgr Rollup of 7 pull requests Successful merges: - rust-lang#92058 (Make Run button visible on hover) - rust-lang#92288 (Fix a pair of mistyped test cases in `std::net::ip`) - rust-lang#92349 (Fix rustdoc::private_doc_tests lint for public re-exported items) - rust-lang#92360 (Some cleanups around check_argument_types) - rust-lang#92389 (Regression test for borrowck ICE rust-lang#92015) - rust-lang#92404 (Fix font size for [src] links in headers) - rust-lang#92443 (Rustdoc: resolve associated traits for non-generic primitive types) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
This slightly reduces the noisiness of doc pages, making them easier to read.
Demo: https://rustdoc.crud.net/jsha/run-on-hover/std/string/struct.String.html
Discussed on Zulip.
Part of #59845