Skip to content

[rustdoc] Change table odd table rows background color to not make it the same as inline code - #160438

Open
GuillaumeGomez wants to merge 1 commit into
rust-lang:mainfrom
GuillaumeGomez:table-odd-code
Open

[rustdoc] Change table odd table rows background color to not make it the same as inline code#160438
GuillaumeGomez wants to merge 1 commit into
rust-lang:mainfrom
GuillaumeGomez:table-odd-code

Conversation

@GuillaumeGomez

@GuillaumeGomez GuillaumeGomez commented Aug 3, 2026

Copy link
Copy Markdown
Member

Fixes #159234.
Follow-up of #105442.

It now looks like this:

Screenshot From 2026-08-03 15-21-15 Screenshot From 2026-08-03 15-21-21 Screenshot From 2026-08-03 15-21-25

For the light theme, I had to make the inline code background darker so it would mix well with the alternative table rows background color.

r? @notriddle

@rustbot

rustbot commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

Some changes occurred in HTML/CSS/JS.

cc @lolbinarycat

@rustbot rustbot added A-rustdoc-js Area: Rustdoc's JS front-end 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. T-rustdoc-frontend Relevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output. labels Aug 3, 2026
@GuillaumeGomez GuillaumeGomez changed the title Change table odd table rows background color to not make it the same as inline code [rustdoc] Change table odd table rows background color to not make it the same as inline code Aug 3, 2026
@lolbinarycat

Copy link
Copy Markdown
Contributor

i feel like the odd/even colors should be swapped so they dont get doubled up if theres a header.

and maybe too much of a nitpick but i feel like tables with a small number of rows (~2 or 3) dont need the alternating color.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-rustdoc-js Area: Rustdoc's JS front-end 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. 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.

Rustdoc: table stripes hide inline code span background color

4 participants