Make adding fields to tasks more intuitive #365
No reviewers
Labels
No Label
area/internal-code
changes requested
confirmed
dependencies
duplicate
good first issue
help wanted
hosting
invalid
kind/bug
kind/feature
question
wontfix
No Milestone
No project
No Assignees
2 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: vikunja/frontend#365
Loading…
Reference in New Issue
No description provided.
Delete Branch "profi248/frontend:task-add-property-improvement"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I tried to make adding fields to a task more understandable, right now I have problems seeing where the newly added field appered. Especially so on mobile, where the field just gets added somewhere outside of the viewport and the user has no feedback. So made these changes:
Not sure if this is the best approach, but I think it makes it a lot better.
Fields that are visually distinct or have automatic keyboard focus don't have a flashing background.
I think the best way would be to just make sure every settings component can receive a
$el.focus()
but last time I looked into it that was not easy to achieve. I like the idea of just scrolling it into the viewport, maybe that could be the default? In addition to some elements receiving focus?@ -256,1 +256,4 @@
}
.flash-background {
animation: flash-background 0.75s ease 1;
There's a
$transition-duration
variable (the name is something like that), please use that to let the the transitions have a consistent duration.The default transition duration is 100ms, which doesn't look good (this transition is kind of a special case). I think adding a new variable just for this (for now) would be the best.
@ -550,0 +549,4 @@
this.$refs[fieldName].$el.focus();
// animate background flash with CSS animations (if the field's parent has a ref)
if (typeof this.$refs[fieldName + "Parent"] !== 'undefined')
Please use vue transitions for the flashing.
Okay, will try that
I think that most of the inputs will be used with a mouse anyway, so it's not that important. It would probably still be the best solution though. I tried making focus work, but it didn't and I'm not sure what to change right now.
Thanks!
The issue with focus not working properly is one for another day™ since that didn't work previously either.