Skip to content

Commit dd912ad

Browse files
committed
rustdoc: stop hiding focus outlines on non-rustdoc-toggle details tags
We really shouldn't be overriding this kind of stuff unless the browser default is really broken (like outlining the thing that isn't clickable). This directly reverts b8f4e74.
1 parent 60b5f6d commit dd912ad

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Diff for: src/librustdoc/html/static/css/rustdoc.css

+2-4
Original file line numberDiff line numberDiff line change
@@ -292,10 +292,6 @@ p:last-child {
292292
margin: 0;
293293
}
294294

295-
summary {
296-
outline: none;
297-
}
298-
299295
/* Fix some style changes due to normalize.css 8 */
300296

301297
button {
@@ -1538,6 +1534,8 @@ details.rustdoc-toggle > summary.hideme {
15381534

15391535
details.rustdoc-toggle > summary {
15401536
list-style: none;
1537+
/* focus outline is shown on `::before` instead of this */
1538+
outline: none;
15411539
}
15421540
details.rustdoc-toggle > summary::-webkit-details-marker,
15431541
details.rustdoc-toggle > summary::marker {

0 commit comments

Comments
 (0)