Skip to content

Commit 32c9624

Browse files
authored
Rollup merge of #103643 - notriddle:notriddle/summary-focus-visible, r=GuillaumeGomez
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.
2 parents 19b406d + dd912ad commit 32c9624

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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 {
@@ -1535,6 +1531,8 @@ details.rustdoc-toggle > summary.hideme {
15351531

15361532
details.rustdoc-toggle > summary {
15371533
list-style: none;
1534+
/* focus outline is shown on `::before` instead of this */
1535+
outline: none;
15381536
}
15391537
details.rustdoc-toggle > summary::-webkit-details-marker,
15401538
details.rustdoc-toggle > summary::marker {

0 commit comments

Comments
 (0)