-
Notifications
You must be signed in to change notification settings - Fork 10
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
Make input fields translucent #2717
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Current dependencies on/for this PR:
This comment was auto-generated by Graphite. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good :)
The new implementation for the animations is easier understand as you've mentioned.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job!
e120630
to
c9bba80
Compare
c9bba80
to
765eea1
Compare
765eea1
to
0cf568f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Describe your changes
Change background color of input fields to "translucent 1"
Update
useHighlightAnimation
hook to use JS animations instead of framer motionFix highlight animation for horizontal radio group inputs
Justify why they are needed
I had to switch from framer motion to JS animations becuase framer motion has difficulties tweening colors with alpha values. I also think the new impolementation is slightly easier to understand.
The new solution returns a ref which you attatch to the element you want to animate. In the few cases where we already use the ref, I decided to add a wrapper div around it and animate that (e.g. Combobox).
We want the inputs to be translucent to work better in the price calculator which has a blurred background on mobile.
Checklist before requesting a review