brave / brave-browser

Brave browser for Android, iOS, Linux, macOS, Windows.
https://brave.com
Mozilla Public License 2.0
17.63k stars 2.3k forks source link

Search bar in History blocks buttons in UI #15572

Open Brave-Matt opened 3 years ago

Brave-Matt commented 3 years ago

Description

When you search your browsing history in Settings --> History, the search bar appears and overlays the Cancel and Delete buttons you would use after selecting sites:

Without search: image

With search: image

Steps to Reproduce

  1. Visit Settings --> History
  2. Search using the search bar at the top
  3. Observe buttons being hidden

Reproduces how often:

Always

Brave version (brave://version info)

Brave 1.24.77 Chromium: 90.0.4430.85 (Official Build) dev (x86_64)
Revision 5bc145d831c180d9ff94f29a0d7a2e1cbd30ef36-refs/branch-heads/4430@{#1311}
OS macOS Version 11.2.3 (Build 20D91)

Note that this also happens on Windows systems.

Version/Channel Information:

Miscellaneous Information:

User report: https://community.brave.com/t/a-bug-in-ui-in-browser-history-page/240494

rebron commented 3 years ago

Working as designed with the x button for closing the search. So I'm not sure there's a need for cancel and delete buttons for search whereas I see the need for selection. cc: @petemill @karenkliu

karenkliu commented 3 years ago

Yeah, this is actually how Chrome works. You can't search history after selecting an item in history (in Gmail, can you still use the search function if something is selected, but searching mail will get rid of your selection and instead show the search results). In our case, it looks funky because we have other stuff in the top nav that Chrome doesn't have, which also gets hidden if the user is engaging in searching history.

I propose leaving as is for now, but to make it less confusing in the future we might want to take the page-specific search icon out of the top nav - it seems that some people don't realize it's searching only the page and not ALL the content through Settings/Brave Rewards/History/Bookmarks/Downloads/Crypto Wallets. Also, some pages like Crypto Wallets don't require a page-search function.

Dropping the search function down to the page level might look something like this: image

Of course, we'll have to think of the UI treatment for each the pages (Settings/Brave Rewards/History/Bookmarks/Downloads/Crypto Wallets) if we go in this direction.

eljuno commented 3 years ago

Duplicate of #7398 ?