-
-
Notifications
You must be signed in to change notification settings - Fork 293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Name input isn't intuitive to use #319
Comments
White text on a gray background should also be avoided, as the contrast is far too low. see https://webaim.org/resources/contrastchecker/?fcolor=FFFFFF&bcolor=A5A5A5 |
Thanks for your input! I like the current design as it is optimized for mobile:
I agree that it might be less intuitive for new users on Desktop browsers as there is no keyboard to pop up. Ideas to make it more intuitive:
Any other ideas? |
Could we fill in the input instead of using a placeholder? Clicking the edit button should focus on the input and select the entire text. That should be enough to make desktop users happy and keep things slick on mobile. |
The contenteditable div seems to trigger a known Firefox bug: https://bugzilla.mozilla.org/show_bug.cgi?id=904846 |
I don’t think it has anything to do with the node type. The current behavior (apart from the missing cursor) is by design but seems to be unintuitive for you so I’m open to change it. I’ll increase the contrast and try to force the cursor to be clearly visible on all platforms. If things are working as expected for you as soon as text is entered, we could simply clear the placeholder field if the name node is focused. Alternatively, we could add „Custom Name“ to it if clicked and select it. This way it is clearer that it’s a text field and as soon as something is typed „Custom Name“ is overwritten (because it is selected). Although the first idea removes the hint, that leaving the name empty resorts to it being random again, I prefer it to the second idea. What do you think? |
This may be an implicit behavior. At least Firefox shows the Switching from It's also a bit cleaner from a semantic point of view.
Much appreciated. I think this can be done with plain CSS: input:focus::placeholder {
color: transparent;
} |
You were too fast! I corrected my mistake one minute earlier :P Anyways, apparently Firefox cursor position is broken whenever the div is completely empty: Probably, this is why they always add a line break to a div whenever text is deleted which I needed to work around in the current design: PairDrop/public/scripts/ui-main.js Lines 262 to 265 in a68cd75
I'll play around a little and come up with a solution |
I'm curious but why is a |
While a div is just a plain container, an input node is rendered differently on every OS and browser. As you have experienced earlier we would have to reset the default input css first before adding our own. I prefer to start with a clean canvas.
While this is old it brings the point accross, I think. As PairDrop is a web app, I'd like to have as much control on its look as possible. I have implemented a fix. Please test this on different browsers: https://pairdrop-next.onrender.com |
Thanks for the insight. Sounds reasonable 🙂
Just gave it a try on Firefox and Chrome. Both browsers now behave similarly and the user feedback is much better IMHO. One nitpick:
|
That's too dark for my liking but I see your point. I propose
Good catch! New try: https://pairdrop-next.onrender.com |
Beautiful!
Sounds good 👍 One last thing I noticed is that the name tends to get applied prematurely in Firefox:
It also feels a little different in Firefox and Chrome. Maybe the focus is somehow lost? |
I cannot reproduce this. Is this still an issue? Could you capture a screencast of it? |
Weird. It's working now 🤷 The only thing missing is the color change. |
Perfect! I'll push the color change then and will release it as part of the next minor version |
I just released the newest version and deployed it on pairdrop.net. Thanks for your help! :) |
Describe the bug
Maybe it's just me, but the name input is far from intuitive.
As a new user the input looks like a non-editable label at first glance. Visually it's closer to Githubs presentation of labels and you wouldn't expect to be able to edit this text:
Since the actual input does not seem to be editable, the "edit button" next to it must be there to toggle it. At least that was my thought.
As nothing happened after clicking the image that I misidentified as a button, I revised my previous assumption and tried to use the input by clicking in it. The barely or even invisible cursor adds to that confusion:
Firefox:
Chrome:
Expected behavior
I can see two possible solutions:
The text was updated successfully, but these errors were encountered: