Skip to content
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

Input fade out timeout #109

Closed
wants to merge 2 commits into from

Conversation

PaideiaDilemma
Copy link
Collaborator

@PaideiaDilemma PaideiaDilemma commented Mar 1, 2024

Hi!

A bit of a follow up to #98

This handles the placeholder text in combination with fadeOnEmpty better, as it allows the user to specify a timeout for fading out the password field.

It now behaves the same weather an authentication failure happens or weather I empty the password input field (via ESC or Backspace).

This is how it looks with a default timeout of 1 second:

fade_out_timeout.mp4

Comment on lines -202 to +225
return dots.currentAmount != PASSLEN || data.opacity < 1.0 || forceReload;
return dots.currentAmount != PASSLEN || fade.animated || forceReload;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

data.opacity < 1.0 did not really make sense to me. Did I miss something about that?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uhh I think the renderer will take care of that anyways I think

@PaideiaDilemma
Copy link
Collaborator Author

This way it rerenders during the timeout though. Should this be implemented via a callback instead?

Copy link
Member

@vaxerski vaxerski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a callback would be nice.

@PaideiaDilemma PaideiaDilemma marked this pull request as draft March 3, 2024 17:18
Now the dots kind of fade into the placeholder text on a failure.
@PaideiaDilemma PaideiaDilemma changed the title Fade out timeout Input fade out timeout Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants