Skip to content

Commit 75e4de6

Browse files
committed
rustdoc: revert tooltip background color on light theme to readable
text #fff on background #fdffd3 fails the [WCAG color contrast checker], and seems like a mistake in 16b5590. [WCAG color contrast checker]: https://accessibleweb.com/color-contrast-checker/
1 parent f8b2e13 commit 75e4de6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/librustdoc/html/static/css/themes/light.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
--test-arrow-hover-background-color: #4e8bca;
6565
--target-background-color: #fdffd3;
6666
--target-border-color: #ad7c37;
67-
--tooltip-background-color: #fdffd3;
67+
--tooltip-background-color: #000;
6868
--tooltip-color: #fff;
6969
--kbd-color: #000;
7070
--kbd-background: #fafbfc;

src/test/rustdoc-gui/codeblock-tooltip.goml

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ call-function: ("check-colors", {
146146
})
147147
call-function: ("check-colors", {
148148
"theme": "light",
149-
"background": "rgb(253, 255, 211)",
149+
"background": "rgb(0, 0, 0)",
150150
"color": "rgb(255, 255, 255)",
151151
"border": "rgb(224, 224, 224)",
152152
})

0 commit comments

Comments
 (0)