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. :-) |
There was a problem hiding this comment.
| 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