Skip to content

[rustdoc] Improve display of prev/next scraped examples buttons #136870

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

Closed

Conversation

GuillaumeGomez
Copy link
Member

Currently it looks like this:

Screenshot From 2025-02-11 15-20-22

Which is... not great. With this PR, it now looks like this:

image

It switched to the plain < and > characters and made them a bit bigger so they match other buttons size.

r? @notriddle

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
…text
@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. labels Feb 11, 2025
@rustbot
Copy link
Collaborator

rustbot commented Feb 11, 2025

Some changes occurred in HTML/CSS/JS.

cc @GuillaumeGomez, @jsha

Comment on lines +63 to +64
const next = createScrapeButton(buttonHolder, "next", ">");
const prev = createScrapeButton(buttonHolder, "prev", "<");
Copy link
Contributor

Choose a reason for hiding this comment

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

In the past, we've tried to move away from using punctuation as icons, because it looks confusingly like syntax. We could use the same unicode icons as the expand buttons, or we could use SVG. #136950

Suggested change
const next = createScrapeButton(buttonHolder, "next", ">");
const prev = createScrapeButton(buttonHolder, "prev", "<");
const next = createScrapeButton(buttonHolder, "next", "");
const prev = createScrapeButton(buttonHolder, "prev", "");

@GuillaumeGomez
Copy link
Member Author

Closing in favor of #136950.

@GuillaumeGomez GuillaumeGomez deleted the prev-next-buttons-text branch February 13, 2025 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. 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

3 participants