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

Remove unneeded cursor pointer rule on mobile sidebar #93212

Merged
merged 1 commit into from Jan 24, 2022

Conversation

GuillaumeGomez
Copy link
Member

Since it's on mobile, there isn't much point in this rule...

r? @jsha

@rustbot rustbot added the T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. label Jan 22, 2022
@rust-highfive
Copy link
Collaborator

Some changes occurred in HTML/CSS/JS.

cc @GuillaumeGomez,@Folyd

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jan 22, 2022
@notriddle
Copy link
Contributor

@notriddle
Copy link
Contributor

And even if iOS and Android didn’t actually support using mice, this still seems like a wrong way of thinking about it. Narrow screens aren’t just touchscreen smartphones. They also show up when you use a tiling window manager to put a desktop browser in a narrow window.

@jsha
Copy link
Contributor

jsha commented Jan 24, 2022

It's true mobile devices can have mice. But actually there's a better reason to get rid of this rule: it's not needed anymore and we should defer to the browser's choice of what cursor to use. The rule was introduced in dc2c972, when the sidebar toggle was a link pretending to be a button. It's now a button, so the browser will give us the appropriate cursor automatically.

r=me if @notriddle agrees with the above analysis.

@notriddle
Copy link
Contributor

That’s fine. I just don’t want it showing an I-bar.

@GuillaumeGomez
Copy link
Member Author

Thanks you both for the arguments. TIL. :)

@bors: r=jsha rollup

@bors
Copy link
Contributor

bors commented Jan 24, 2022

📌 Commit 9f30dd9 has been approved by jsha

@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 Jan 24, 2022
bors added a commit to rust-lang-ci/rust that referenced this pull request Jan 24, 2022
…askrgr

Rollup of 8 pull requests

Successful merges:

 - rust-lang#92513 (std: Implement try_reserve and try_reserve_exact on PathBuf)
 - rust-lang#93152 (Fix STD compilation for the ESP-IDF target (regression from CVE-2022-21658))
 - rust-lang#93186 (Fix link to CVE-2022-21658)
 - rust-lang#93188 (rustdoc: fix bump down typing search on Safari)
 - rust-lang#93212 (Remove unneeded cursor pointer rule on mobile sidebar)
 - rust-lang#93231 (adjust sidebar link brightness)
 - rust-lang#93241 (Fix brief appearance of rust logo in the sidebar)
 - rust-lang#93253 (Update theme on pageshow event)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 26f14bb into rust-lang:master Jan 24, 2022
@rustbot rustbot added this to the 1.60.0 milestone Jan 24, 2022
@GuillaumeGomez GuillaumeGomez deleted the cursor-pointer-mobile-sidebar branch January 24, 2022 18:04
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. 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.

None yet

6 participants