Uh oh!
There was an error while loading. Please reload this page.
adjust sidebar link brightness - #93231
Conversation
rust-highfive
commented
Jan 23, 2022
Some changes occurred in HTML/CSS/JS. |
rust-highfive
commented
Jan 23, 2022
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @notriddle (or someone else) soon. Please see the contribution instructions for more information. |
GuillaumeGomez
commented
Jan 23, 2022
conradludgate
commented
Jan 23, 2022
There seems to be a separate rule which defines the selected item colour: Are you suggesting we should apply the same contrast scaling to these? |
GuillaumeGomez
commented
Jan 23, 2022
If there is a contrast "problem" there as well, then yes. |
This comment has been minimized.
This comment has been minimized.
Uh oh!
There was an error while loading. Please reload this page.
notriddle
left a comment
There was a problem hiding this comment.
Needs to fix the sidebar.goml test case failure. Other than that, this looks great. Thanks!
/checkout/src/test/rustdoc-gui/sidebar.goml sidebar... FAILED
9846
Error: (line 12) Error: Evaluation failed: expected `rgb(56, 115, 173)` for key `color` for selector `#all-types`, found `rgb(53, 109, 164)`: for command `assert-css: ("#all-types", {"color": "rgb(56, 115, 173)"})`
jsha
commented
Jan 23, 2022
Very nice, thanks for working on this! Related to: #93230 |
notriddle
commented
Jan 23, 2022
@bors r+ |
bors
commented
Jan 23, 2022
📌 Commit ca3d0e2 has been approved by |
GuillaumeGomez
commented
Jan 23, 2022
@bors rollup |
…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
…illaumeGomez minor fix for rust-lang#93231 In rust-lang#93231 I introduced the new sidebar colours to make the contrast more balanced and easier to read, but it seems I made a copy-paste error in the light theme, resulting in functions appearing green. This one line change replaces that colour with it's corrected orange/brown colour. I have double checked the rest of the colours and they seem ok. Sorry for the inconvenience
…askrgr Rollup of 5 pull requests Successful merges: - rust-lang#93250 (Remove deduplication of early lints) - rust-lang#93286 (Add white-space: nowrap to links in the sidebar) - rust-lang#93291 (minor fix for rust-lang#93231) - rust-lang#93300 (make Windows abort_internal Miri-compatible) - rust-lang#93303 (Fix ICE when parsing bad turbofish with lifetime argument) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup



Fairly simple change. I've taken the existing link colour and main body background colours, and made sure that the sidebar+link contrast is the same.
ayu:
dark:
light: