OpenSnowMap-org / Website-opensnowmap.org

ski map website
22 stars 25 forks source link

Search improvement on http://www.opensnowmap.org #31

Open ldmpub opened 2 years ago

ldmpub commented 2 years ago

Hi,

Request

To gain time, I suggest to add "default focus" into the search box when user starts a search.

Current behavior

See video attached (keyboard entries are displayed in the bottom left corner)

https://user-images.githubusercontent.com/1452146/150656513-c3fea7cf-47e2-47d4-9ea4-73976a0409e6.mp4

Future behavior

When user clicks on the search icon 🔎 in the top bar, he can directly enter his text in the search area (without having to click, prior to his inputs, in this area). I don't see any drawbacks to this new behavior because there is no other possible action than search. You could have a look at how it works at google.com ...

yvecai commented 2 years ago

Thanks again for this extensive request. I completely agree with you when you're on desktop. However, when you're browsing with a mobile phone, giving the focus to the input field opens up the on-screen keyboard. This is less than ideal because on a small device it can hide the search menu before it can be seen, leaving the user completely lost. I have to dig into it to give the proper behaviour on both worlds.

ldmpub commented 2 years ago

Ok, I see: you need to detect the device (or maybe the screen resolution?).