-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
theming: move reset button into field and only show when focused #2151
Conversation
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
@jancborchardt, thanks for your PR! By analyzing the history of the files in this pull request, we identified @LukasReschke, @juliushaertl and @schiessle to be potential reviewers. |
@jancborchardt Wouldn't it make more sense to show them when hovering the fields? That way they were still hidden, but in case you want to reset some value there will be only one click instead of one. Even without the hover: 👍 |
@juliushaertl I had it with hover before, but then it looked strange because when you focus one field and hover another, two reset icons are shown. |
Don't forget touch only devices. The focus-solution will work in both cases pretty. If you use hover on desktop, mobile devices have to show the button always, so there would be no benefit. |
@jancborchardt @stefan-niedermann Ok, makes sense. 😉 |
@stefan-niedermann so, can I get a plus-one / thumbs-up from you? ;D |
@jancborchardt don't be gready! 😉 |
@skjnldsv gimme! 😠 😄 |
👍 |
@jancborchardt Could you create a "show always" for mobile in a separate PR? Thanks ;) |
@MorrisJobke for mobile it’s also intended to be exactly like this. :) Tap into a field, then you can reset. |
yeah, thumbs up! :D |
As per #2134, makes the buttons way less obnoxious. Please review @nextcloud/designers @nextcloud/theming
Before & after