Skip to content
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

rustdoc mobile: move notable traits to return type #101494

Merged
merged 1 commit into from
Sep 16, 2022

Conversation

jsha
Copy link
Contributor

@jsha jsha commented Sep 6, 2022

These were originally on the left, but were moved to the return type in c90fb71. The CSS rule for mobile did not get updated at the time, so updating it now.

r? @notriddle

These were originally on the left, but were moved to the return type in
c90fb71. The CSS rule for mobile did
not get updated at the time, so updating it now.
@jsha jsha added T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. A-rustdoc-ui Area: Rustdoc UI (generated HTML) labels Sep 6, 2022
@rustbot
Copy link
Collaborator

rustbot commented Sep 6, 2022

Some changes occurred in HTML/CSS/JS.

cc @GuillaumeGomez, @Folyd, @jsha

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 6, 2022
@GuillaumeGomez
Copy link
Member

GuillaumeGomez commented Sep 6, 2022

Thanks for this fix! Do you have a screenshots too by any chance? Also, could you add a GUI test too please?

@jsha
Copy link
Contributor Author

jsha commented Sep 6, 2022

Before (https://doc.rust-lang.org/1.63.0/std/string/struct.String.html#method.drain on mobile)

image

After

image

I can work on a GUI test to cover notable traits (there isn't one currently). It doesn't make sense to make a negative test for the removed behavior (i.e. test that the icon is not on the left) because there's no reason to believe it will accidentally wind up on the left in the future.

@GuillaumeGomez
Copy link
Member

We agree on that. I just wanted to have something to check the position of "i" in both desktop and mobile. I think we currently don't have one.

@GuillaumeGomez
Copy link
Member

GuillaumeGomez commented Sep 16, 2022

I'll add the test in another PR. Opening an issue in the meantime. Thanks for working on this!

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Sep 16, 2022

📌 Commit d6f385f has been approved by GuillaumeGomez

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Sep 16, 2022
bors added a commit to rust-lang-ci/rust that referenced this pull request Sep 16, 2022
…llaumeGomez

Rollup of 7 pull requests

Successful merges:

 - rust-lang#101494 (rustdoc mobile: move notable traits to return type)
 - rust-lang#101813 (Extend CSS check to CSS variables)
 - rust-lang#101825 (Fix back RPIT changes)
 - rust-lang#101843 (Suggest associated const for incorrect use of let in traits)
 - rust-lang#101859 (Slight vertical formatting)
 - rust-lang#101868 (rustdoc: use more precise URLs for jump-to-definition links)
 - rust-lang#101877 (rustdoc: remove no-op CSS `.block { padding: 0 }`)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit e96abef into rust-lang:master Sep 16, 2022
@rustbot rustbot added this to the 1.65.0 milestone Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-rustdoc-ui Area: Rustdoc UI (generated HTML) S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants