fenix icon indicating copy to clipboard operation
fenix copied to clipboard

[UX] Find in Page

Open lime124 opened this issue 7 years ago • 8 comments

User Story: As a user, I want to be able to search for a work on a site and quickly find it so I can have a fast browsing experience.

Current Design Status:

  • Copy designs from Focus

┆Issue is synchronized with this Jira Task

lime124 avatar Jan 18 '19 22:01 lime124

What we do in Focus is good. I don't think we need to reinvent the wheel.

@st3fan Is there a component for this?

shorlander avatar Jan 25 '19 22:01 shorlander

@shorlander there is a newly created component found here which I am integrating. I agree with not needing to reinvent the wheel on this feature!

sblatz avatar Jan 29 '19 17:01 sblatz

Here is the current implementation. The colors can easily be swapped as needed. Currently the background is "off-white," and the count as well as buttons are "primary-color."

sblatz avatar Jan 30 '19 19:01 sblatz

Find in page looks super weird as compared to every other Android browser I have tried as it stacks the find bar above the location bar instead of appearing in the same place.

In other browsers (Edge, Kiwi, Opera, Bromite), the find box appears in the same place as the location bar/toolbar. Since the toolbar is visible when a user opens the find in page toolbar, the location bar/toolbar remains visible if the user clicks the "x" to dismiss the find bar.

Focus is the unusual one here, since it opens the find bar at the bottom of the screen and hides the location toolbar. Dismissing the find bar doesn't show the location bar again.

Fennec shows both the find bar and the location bar, but since the location bar is at the top and the find bar is at the bottom, it doesn't look weird (it isn't stacked).

I prefer the Edge, Kiwi, Opera, Bromite behavior, as it feels seamless and fluid, and doesn't look as weird as stacked toolbars. Fennec's method works too, but I'm not sure you want to move the find bar to the top of the screen.

yoasif avatar Feb 17 '19 03:02 yoasif

For find in page, I think a highlight for matching strings which are not focused (similar to that in chrome and other browsers) would be nice.

rituraj22 avatar Feb 19 '19 05:02 rituraj22

For find in page, I think a highlight for matching strings which are not focused (similar to that in chrome and other browsers) would be nice.

This works in Focus today, so I would expect for it to make it over in Fenix.

yoasif avatar Feb 19 '19 06:02 yoasif

Find in Page is already working (via existing a-c component), do we need to update the UX based on some comments here, or is UX ok with the implementation?

@lime124?

bbinto avatar Mar 20 '19 12:03 bbinto

@bbinto I notice a couple of small issues with our Find in Page implementations, that needs to be fixed.

  1. As @yoasif has pointed out, the find bar should appear in the same place as the address bar, not stacked on top of it.
    • As a result, when the find bar is open, it must first be closed (either by tapping “x” or tapping the system back button) to show the address bar again.
  2. When the find bar highlights a match, all the other matches on the page should also be highlighted, as in this example:

In the example above, currently highlighted text has the colour green-60 #2ac3a2, and all the other highlights have the colour yellow-20 #ffea80.

brampitoyo avatar Mar 21 '19 04:03 brampitoyo