Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rustdoc: add visible focus outline to rustdoc-toggle #103554

Merged
merged 2 commits into from
Oct 26, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/librustdoc/html/static/css/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -1585,6 +1585,14 @@ details.rustdoc-toggle > summary:hover::before {
opacity: 1;
}

details.rustdoc-toggle > summary:focus-visible::before {
/* The SVG is black, and gets turned white using a filter.
Do the same with the outline.
*/
notriddle marked this conversation as resolved.
Show resolved Hide resolved
outline: 1px dotted #000;
outline-offset: 1px;
}

details.rustdoc-toggle.top-doc > summary,
details.rustdoc-toggle.top-doc > summary::before,
details.rustdoc-toggle.non-exhaustive > summary,
Expand Down