rustdoc: make [-] invisible in most cases #85372
Labels
A-rustdoc-js
Area: Rustdoc's JS front-end
A-rustdoc-ui
Area: Rustdoc UI (generated HTML)
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
The toggles (
[-]
/[+]
) on rustdoc pages are needed for a couple of reasons:[+]
to open them.[+]
to open them.[+]
to open them.Note that these all involve the
[+]
, not the[-]
. But we show lots of[-]
all over the page, which is visually distracting. In theory these allow users to collapse a single section at a time, but I don't think that's very useful.I propose that we make
[-]
invisible. With one exception: If someone has opened a section with[+]
, it would be confusing and frustrating to not be able to close that section again. So, when someone clicks a[+]
, we would added a "perma-visible" class to that<summary>
tag, which would cause the[-]
to be visible.cc @GuillaumeGomez
The text was updated successfully, but these errors were encountered: