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

Improve "important traits" popup display on mobile #74555

Merged
merged 1 commit into from
Jul 21, 2020

Conversation

GuillaumeGomez
Copy link
Member

I implemented what @XAMPPRocky suggested in the internals thread topic. I can confirm it works nicely.

r? @Manishearth

@Manishearth: By the way: I realized that when you click on the "i", you have to click again to make the popup disappear. Do you want me to extend the popup removal to any click outside the popup?

@rust-highfive
Copy link
Collaborator

Some changes occurred in HTML/CSS/JS.

cc @GuillaumeGomez

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 20, 2020
Copy link
Member

@Manishearth Manishearth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r=me if you want to land this on its own

@GuillaumeGomez
Copy link
Member Author

I'll extend the popup dismissal in another PR then.

@bors: r=Manishearth

@bors
Copy link
Contributor

bors commented Jul 20, 2020

📌 Commit 995d63a has been approved by Manishearth

@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 Jul 20, 2020
@GuillaumeGomez
Copy link
Member Author

@bors rollup

@Manishearth
Copy link
Member

So I was intending to batch these changes along with some others, namely:

  • Change it to "Notable traits"
  • Change it to "Notable traits for Type"

Feel free to make those in this same PR, or we can just land this and someone will make 'em later.

@Manishearth: By the way: I realized that when you click on the "i", you have to click again to make the popup disappear. Do you want me to extend the popup removal to any click outside the popup?

Hmmm. I'm not sure! It would be nice if you could make multiple popups open. I'm not a big fan of "click outside to close" UIs on mobile because they're easy to misclick, but that might just be a personal quirk.

@GuillaumeGomez
Copy link
Member Author

So I was intending to batch these changes along with some others, namely:...

I think it deserves a PR on its own since it's wording which is a different purpose that the current PR. Also, following the topic on the internals forum, it seems to be active so I expect some comments, so better put it into its own PR.

Hmmm. I'm not sure! It would be nice if you could make multiple popups open. I'm not a big fan of "click outside to close" UIs on mobile because they're easy to misclick, but that might just be a personal quirk.

This is also a fair concern. Should we update a thread or something along the line to check people's preferences about it? We close the other popups (at least the "help" popup) when clicking outside, but it's a big popup, so I don't really know...

@Manishearth
Copy link
Member

The other popups are modal, this isn't, this is a tooltip. Worth posting on the thread though!

I think it deserves a PR on its own since it's wording which is a different purpose that the current PR.

Sounds good.

bors added a commit to rust-lang-ci/rust that referenced this pull request Jul 20, 2020
…arth

Rollup of 13 pull requests

Successful merges:

 - rust-lang#72714 (Fix debug assertion in typeck)
 - rust-lang#73197 (Impl Default for ranges)
 - rust-lang#73323 (wf: check foreign fn decls for well-formedness)
 - rust-lang#74051 (disallow non-static lifetimes in const generics)
 - rust-lang#74376 (test caching opt_const_param_of on disc)
 - rust-lang#74501 (Ayu theme: Use different background color for Run button)
 - rust-lang#74505 (Fix search input focus in ayu theme)
 - rust-lang#74522 (Update sanitizer docs)
 - rust-lang#74546 (Fix duplicate maybe_uninit_extra attribute)
 - rust-lang#74552 (Stabilize TAU constant.)
 - rust-lang#74555 (Improve "important traits" popup display on mobile)
 - rust-lang#74557 (Fix an ICE on an invalid `binding @ ...` in a tuple struct pattern)
 - rust-lang#74561 (update backtrace-rs)

Failed merges:

r? @ghost
@bors bors merged commit 963b837 into rust-lang:master Jul 21, 2020
@GuillaumeGomez GuillaumeGomez deleted the important-traits-popup branch July 21, 2020 07:41
@cuviper cuviper added this to the 1.47.0 milestone May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants