Skip to content

Weird flash on input focus #3685

Answered by simonswiss
captenmasin asked this question in Help
Discussion options

You must be logged in to vote

Hey!

This is because you're using the transition-all transition property class, which will transition every CSS property over the default duration (150ms).

So, basically your outline-none transitions over 150ms as well, hence the weird flash you see when entering/leaving focus.

You probably want to change this to something like just transition, or one of the other values.

Hope that makes sense 👍

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@captenmasin
Comment options

Answer selected by captenmasin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants