-
Notifications
You must be signed in to change notification settings - Fork 273
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
fix(FeedbackDialog): update colors and animations #977
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/carbon-design-system/gatsby-theme-carbon/41x9vwjti |
…bon into fix-feeback-btn
@vpicone yes to the buttons coming in at the end. Ughhh to the disheveled part. I thought I fixed that. It seems like it happens randomly, then. Need to figure it out... 👀 |
@jnm2377 The checkmark is gonna be so dope!! At the moment, it gets to about 75% and then snaps to the finish. I wasn't able to get a good gif without pulling the code down an forcing the dialog to stay open but let me know if that tracks. |
@vpicone here's what I'm seeing when I slow down the animation. Also, I think the circle animation appears like it snaps to finish bc of the fill. The circle stroke itself transitions until 99%, and then at 100% I add the bg fill. But I think bc it's happening so fast, it looks like it finishes at 75%. |
@jnm2377 huh that's so weird. Is that recording from your local build or the build preview? It seems like they're waiting the 400ms before starting but not sure how to replicate it. I checked ff, chrome, and safari with the build preview and they're coming in delayed. It looks very cyborgy. Maybe this is a feature and not a bug haha |
@vpicone the buttons are supposed to be coming in delayed. But expanding from the bottom up, where as your screen recording showed them coming in from the middle then moving down...which is not the intention. That was my local build. Also, I updated the checkmark animation. Lmk if that looks better. |
@jnm2377 okay cool, the expansion from the middle might just be a side effect of the chrome dev tool impacting css/js time differently |
Hey always happy to see motion getting build! I know it's tricky. Here are the main issues I noticed in order of priority:
|
@jnm2377 it looks good to me! |
@jeanservaas if by left and up expansion, you mean width first then height, this is doing exactly that. You can see it in the console screenshot that John posted. The width finishes transitioning before the height. |
@jeanservaas we could make the width transition slower or faster, but we can't stagger the transitioning start time because the transitioned properties are on the same element, so the transition will be executed at the same time. As well as the fact that if there is no visible height, you won't notice the width transition at all, so they have to start together. |
@jnm2377 we might be able to move them independently with key frames I think
|
@vpicone but if you have no visible height, you won't see the width transition. Does that make sense? That's what was throwing me off. Because even in the video example that Shixie created, they start transitioning at the same time, but the width just finishes way before the height does. |
@vpicone I can open up a PR to try to time it better in keyframes, but they would still have to start at the same time in order for any of it to be visible. |
@jnm2377 yeah totally understand that it's technically following our guidance — but @vpicone and I went through the same thing when we were working on it initially. Vince seemingly followed the guidance and we just couldn't really make it work... Growing the width and then the height felt clunky and we couldn't smooth it out. Ultimately, we just threw it out and we agreed that Vince would basically just copy the motion on the Gatsby site's feedback component. Shixie gave us some advice for the motion and I added it to the issue thinking that maybe it would shed some light on how to make this work correctly. I think before moving forward with this, just like John's PRs, we're going to need a review from one of the system's motion experts. @shixiedesign is supposed to weigh in on this tonight or tomorrow. If she can't get to it I will try to have Wonil or even Pete Garvin review it. |
Agree it needs a bit more work |
Hey everyone. It actually looked much better from the last time I saw it but I'd agree with not merging. It's still calling too much attention to itself.
Here's a box link to the video prototype. I improved it a bit (color and added placeholder box for "content") but motion is unchanged. https://ibm.box.com/s/2o0eacmb4knebvpnba5vjldzk4sjhb0r |
I think this works better @shixiedesign. |
I was able to tweak the keyframes you had and get it pretty close to Shixie's prototype. @jnm2377 Let me know if this is helpful. I'm available today if you want to sync up. |
@shixiedesign @johnbister Maybe a bit slow? |
Is closing a hair too fast? Maybe fine @shixiedesign @johnbister |
@jeanservaas @jnm2377 The colors in preview are not right. I think on active state it should remain as a hover and not be dark and a solid face. @jeanservaas can you revisit this and provide spec. |
Enabled state should look like this: Both hover and selected state should look like this: |
@jnm2377 Seems more simple. @jeanservaas whatta ya think? |
@jeanservaas @mjabbink reverting this PR, please make an issue with a proper motion spec. |
@mjabbink I sped it up a bit. Let me know if you think this works as a compromise. Any faster and I have a hard time seeing any easing out. |
Josefina changes from carbon-design-system#977
Josefina changes from carbon-design-system#977
Josefina changes from carbon-design-system#977
Josefina changes from carbon-design-system#977
Josefina changes from carbon-design-system#977
Closes #790
Closes #886
Changelog
BackToTop
button.FeedbackDialog
:animateButtonRow
)Removed