Very often when I try to hit the little X in the top right corner of a tab, I miss it and instead open the tab. The recommended tap area is 24dp but recommended is 48dp with padding. Maybe we can simply put a larger button on top of the whole top right corner?
See also Touch target size
Asking @lime124 for feedback
Swipe to close tabs would be nicer to have.
added to the UX triage board. thanks stefan!
In Fennec we've used a TouchDelegate (respectively our own copy because of a bug that was only fixed for Android P, so we'd have to re-use that for the foreseeable future) to extend the clickable area of the close button without increasing its visual size (which eats into the space available for the tab title).
We also did the same thing for hover events to handle explore-by-touch, too.
I created an extension function for generating TouchDelegates for any View. We just need to be sure to leave enough room in the layout so it works.
Can we define a touch area or do we need to have a button in that size? I think the layout allows for 48 ✕ 48. Let me know if you need any assets. Thanks!
@st3fan can we define a touch area?
A TouchDelegate resolves the problem by increasing the touch area of the button. This works, provided another button is not right next to the button whose touch area you want to increase. This allows the user to touch a margin area and still manage to press the button.
Still an issue on the new tabs design.
How are we feeling about the size/touch size of this close button now? At some point someone added a 12dp touch size increase. It visually looks pretty small to me, but up to UX
Either needs to be larger or maybe it just needs to look more like a button?
Can we define a touch area or do we need to have a button in that size? I think the layout allows for 48 ✕ 48. Let me know if you need any assets. Thanks!
^^ This was Nicole's suggestion, but based on what @colintheshots says it isn't clear to me if he's just providing information or saying we can't implement Nicole's suggestion b/c the buttons are too close.
A TouchDelegate resolves the problem by increasing the touch area of the button. This works, provided another button is not right next to the button whose touch area you want to increase. This allows the user to touch a margin area and still manage to press the button.
Please clarify. Thanks!
perhaps @boek can chime in? please re-add ux label if we need to come up with another solution. thanks!
Can we consider this fixed with: https://github.com/mozilla-mobile/fenix/issues/4193 ?
Looks like this is fixed. Going to close it.
Most helpful comment
Swipe to close tabs would be nicer to have.