-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Description
spawned from https://github.com/onur/docs.rs/issues/241
The ability to search by parameter and return types sometimes goes undiscovered, even when the feature is desired (see the issue above). Part of this might be because the options do not appear until after the first search.
Currently, results look like the following. It seems benign if one knows to read it as "Results for PAddr In Names", but that might not be immediately obvious.
Some ideas:
Move the bar closer to the search bar (removed the "In"s). This change alone might not be entirely obvious either, although it gives the tabs more breathing space.
To help show that the tabs affect the search results, we could change the tab titles to be read as actions.
from @Havvy
I like both suggestions. I even have one more to add. In the "Results for X", it should say "Results for X in Parameters" when searching parameters. Though that won't help with discoverability. "Results for X in Names" would look weird though, so leave that one off.
Variation of the above:
Name Results for X
Parameter Results for X
Return Type Results for X