Skip to content

Commit 9bdeadd

Browse files
committed
godoc/static: inherit textarea color to avoid illegible text
The cascading sylesheet from the users UI can be inverted. If the background color is altered in the textarea and the text style is left unchanged the text may become illegible. The default value of the textarea color is that of the users UI styling and is not the same as that of the document body. Setting color: inherit; resolves this. Fixes golang/go#29482 Change-Id: Iaa6780154e0bd01d2a8219d813468dab25331b46 GitHub-Last-Rev: 8706d7a GitHub-Pull-Request: #70 Reviewed-on: https://go-review.googlesource.com/c/158137 Reviewed-by: Andrew Bonventre <[email protected]>
1 parent cb89afa commit 9bdeadd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

godoc/static/style.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ body {
66
text-align: center;
77
color: #222;
88
}
9+
textarea {
10+
/* Inherit text color from body avoiding illegible text in the case where the
11+
* user has inverted the browsers custom text and background colors. */
12+
color: inherit;
13+
}
914
pre,
1015
code {
1116
font-family: Menlo, monospace;

0 commit comments

Comments
 (0)