Skip to content

Commit

Permalink
Rollup merge of rust-lang#103643 - notriddle:notriddle/summary-focus-…
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
matthiaskrgr committed Oct 28, 2022
2 parents 19b406d + dd912ad commit 32c9624
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/librustdoc/html/static/css/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -292,10 +292,6 @@ p:last-child {
margin: 0;
}

summary {
outline: none;
}

/* Fix some style changes due to normalize.css 8 */

button {
Expand Down Expand Up @@ -1535,6 +1531,8 @@ details.rustdoc-toggle > summary.hideme {

details.rustdoc-toggle > summary {
list-style: none;
/* focus outline is shown on `::before` instead of this */
outline: none;
}
details.rustdoc-toggle > summary::-webkit-details-marker,
details.rustdoc-toggle > summary::marker {
Expand Down

0 comments on commit 32c9624

Please sign in to comment.