Skip to content

Unify sidebar buttons to use the same image #140135

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

GuillaumeGomez
Copy link
Member

@GuillaumeGomez GuillaumeGomez commented Apr 21, 2025

Part of #139832.

The source sidebar looks like this with the new image:

image

You can test it here.

r? @notriddle

@rustbot rustbot added A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. T-rustdoc-frontend Relevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output. labels Apr 21, 2025
@rustbot
Copy link
Collaborator

rustbot commented Apr 21, 2025

Some changes occurred in HTML/CSS/JS.

cc @GuillaumeGomez, @jsha

@notriddle notriddle removed the T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. label Apr 21, 2025
@notriddle
Copy link
Contributor

Is there a particular reason for using the hamburger icon in desktop mode, instead of the sidebar button? When the file icon was originally chosen in #119066, the main reason was that hamburger icons usually open modals, but, in desktop mode, this button doesn't.

In any case, this is my only question, and it's not that big of a deal. We finally have empirical feedback to work with here, and that trumps any amount of theorizing.

@rfcbot fcp merge

@rfcbot

This comment was marked as off-topic.

@rfcbot rfcbot added proposed-final-comment-period Proposed to merge/close by relevant subteam, see T-<team> label. Will enter FCP once signed off. disposition-merge This issue / PR is in PFCP or FCP with a disposition to merge it. labels Apr 21, 2025
@notriddle notriddle removed the T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue. label Apr 21, 2025
@notriddle
Copy link
Contributor

notriddle commented Apr 21, 2025

@rfcbot fcp cancel

Uuuugggghhhh... why do I always forget to check the list of T- tags before calling fcp on a gui test like this?

@rfcbot
Copy link
Collaborator

rfcbot commented Apr 21, 2025

@notriddle proposal cancelled.

@rfcbot rfcbot removed proposed-final-comment-period Proposed to merge/close by relevant subteam, see T-<team> label. Will enter FCP once signed off. disposition-merge This issue / PR is in PFCP or FCP with a disposition to merge it. labels Apr 21, 2025
@notriddle
Copy link
Contributor

@rfcbot fcp merge

@rfcbot
Copy link
Collaborator

rfcbot commented Apr 21, 2025

Team member @notriddle has proposed to merge this. The next step is review by the rest of the tagged team members:

Concerns:

Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up!

See this document for info about what commands tagged team members can give me.

@rfcbot rfcbot added proposed-final-comment-period Proposed to merge/close by relevant subteam, see T-<team> label. Will enter FCP once signed off. disposition-merge This issue / PR is in PFCP or FCP with a disposition to merge it. labels Apr 21, 2025
@notriddle
Copy link
Contributor

notriddle commented Apr 21, 2025

@rfcbot concern hamburger-button-on-desktop

#140135 (comment)

@bors
Copy link
Collaborator

bors commented Apr 22, 2025

☔ The latest upstream changes (presumably #140138) made this pull request unmergeable. Please resolve the merge conflicts.

@GuillaumeGomez
Copy link
Member Author

Is there a particular reason for using the hamburger icon in desktop mode, instead of the sidebar button? When the file icon was originally chosen in #119066, the main reason was that hamburger icons usually open modals, but, in desktop mode, this button doesn't.

Because the hamburger button is universally known to "open a menu", which is what it's doing here. I don't think whether it's a modal or not makes a difference for users.

@jsha
Copy link
Contributor

jsha commented Apr 22, 2025

Concept seems fine. I note from your screenshot that the button has a light background despite being in a dark theme. For consistency with the mobile topbar, it should have no background / no border.

image

@rustbot rustbot added the T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue. label Apr 23, 2025
@GuillaumeGomez
Copy link
Member Author

Applied @jsha's suggestion (thanks for it!). Updated the screenshot and also added a link to the hosted generated docs.

@GuillaumeGomez
Copy link
Member Author

@notriddle Is your concern resolved btw?

@notriddle
Copy link
Contributor

@rfcbot resolve hamburger-button-on-desktop

@rfcbot rfcbot added final-comment-period In the final comment period and will be merged soon unless new substantive objections are raised. and removed proposed-final-comment-period Proposed to merge/close by relevant subteam, see T-<team> label. Will enter FCP once signed off. labels Apr 25, 2025
@rfcbot
Copy link
Collaborator

rfcbot commented Apr 25, 2025

🔔 This is now entering its final comment period, as per the review above. 🔔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-testsuite Area: The testsuite used to check the correctness of rustc disposition-merge This issue / PR is in PFCP or FCP with a disposition to merge it. final-comment-period In the final comment period and will be merged soon unless new substantive objections are raised. S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue. T-rustdoc-frontend Relevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants