Skip to content

Commit 4cc4660

Browse files
committed
8373679: Link color accessibility issue in dark theme
Reviewed-by: liach, nbenalla Backport-of: 37cb228
1 parent 5234041 commit 4cc4660

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/resources/stylesheet.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,13 @@
163163
<path d="m8 8 84 84" style="stroke:%23e0e0e0;stroke-width:15"/>\
164164
<path d="M8 92 92 8" style="stroke:%23e0e0e0;stroke-width:15"/></svg>');
165165
--current-theme-svg: url("moon.svg");
166+
div.block a[href], div.horizontal-scroll a[href], div.inherited-list h3 a[href], header > div a[href],
167+
.hierarchy a[href], .index a[href], div.caption a[href], .sub-title a[href], .deprecation-comment a[href],
168+
.serialized-class-details a[href] {
169+
text-decoration: underline;
170+
text-decoration-thickness: 0.02em;
171+
text-underline-offset: 0.12em;
172+
}
166173
}
167174
/*
168175
* Styles for individual HTML elements.

test/langtools/jdk/javadoc/doclet/checkStylesheetClasses/CheckStylesheetClasses.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ void run() throws Exception {
122122
"modifiers", "permits", "return-type");
123123

124124
// misc: these are defined in HtmlStyle, and used by the doclet
125-
removeAll(htmlStyleNames, "col-plain", "external-link", "header", "index",
125+
removeAll(htmlStyleNames, "col-plain", "external-link", "header",
126126
"package-uses", "packages", "permits-note", "serialized-package-container",
127127
"source-container");
128128

0 commit comments

Comments
 (0)