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

feat(content-switcher): adds fade up animation #10148

Merged
merged 17 commits into from
Feb 3, 2022

Conversation

AlexanderMelox
Copy link
Contributor

Closes #10117

Screen.Recording.2021-11-18.at.3.58.29.PM.mov

This PR adds a fade-up micro-interaction to the Content Switcher component. This change only changes how the background appears behind the content switcher. No additional functionality was changed in the component.

Changelog

Changed

  • packages/components/src/components/content-switcher/_content-switcher.scss

Testing / Reviewing

No testing, just visual testing with storybook knobs

@AlexanderMelox AlexanderMelox requested a review from a team as a code owner November 19, 2021 17:39
@netlify
Copy link

netlify bot commented Nov 19, 2021

✔️ Deploy Preview for carbon-react-next ready!

🔨 Explore the source changes: e6a224e

🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-react-next/deploys/61fc269b1ffd5c0007d018b5

😎 Browse the preview: https://deploy-preview-10148--carbon-react-next.netlify.app

@github-actions
Copy link
Contributor

github-actions bot commented Nov 19, 2021

DCO Assistant Lite bot All contributors have signed the DCO.

@netlify
Copy link

netlify bot commented Nov 19, 2021

✔️ Deploy Preview for carbon-elements ready!

🔨 Explore the source changes: e6a224e

🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-elements/deploys/61fc269bbf08ba0008920c21

😎 Browse the preview: https://deploy-preview-10148--carbon-elements.netlify.app

@netlify
Copy link

netlify bot commented Nov 19, 2021

❌ Deploy Preview for carbon-components-react failed.
Built without sensitive environment variables

🔨 Explore the source changes: e6a224e

🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-components-react/deploys/61fc269b88bb770008dda20d

@johnbister
Copy link
Contributor

johnbister commented Nov 26, 2021

I'm getting a 'can't handle controls' error in the storybook, but the motion in the recording looks great to me! Do you see this being a one-off animation for the content switcher or do you see it working for more, similar components (like tab for example)?

@mjabbink Do you have any concerns?

@AlexanderMelox
Copy link
Contributor Author

@johnbister I will get back to you after our micro-interaction meeting on thursdays

@jnm2377
Copy link
Contributor

jnm2377 commented Nov 30, 2021

@AlexanderMelox can you sign the DCO? just comment on this PR like it says here: #10148 (comment)

@johnbister the storybook preview is working for me, here's the link I'm looking at: https://deploy-preview-10148--carbon-components-react.netlify.app/?path=/story/components-contentswitcher--default Maybe you need to clear your cache? 👀

@AlexanderMelox
Copy link
Contributor Author

I have read the DCO document and I hereby sign the DCO.

@jnm2377 jnm2377 enabled auto-merge (squash) November 30, 2021 21:00
@AlexanderMelox
Copy link
Contributor Author

Also, I just noticed the preview does not show the animation, but locally (since we are running start:v11) works. I think this is because I have to add it to packages/styles too ?

@AlexanderMelox
Copy link
Contributor Author

@jnm2377 I saw that you enabled auto-merge. Can we actually disable it until my final review with my motion team? I don't want to redo another PR to fix something.

@jnm2377
Copy link
Contributor

jnm2377 commented Dec 1, 2021

@AlexanderMelox I can disable it. FYI It won't merge anything until it's met all the necessary requirements to merge. Which is 2 dev approvals and 1 design approval, and all tests passing.

@jnm2377
Copy link
Contributor

jnm2377 commented Dec 1, 2021

Yes, the styles need to be added in both v10 and v11 packages. @AlexanderMelox

@jnm2377 jnm2377 disabled auto-merge December 1, 2021 17:34
@jnm2377
Copy link
Contributor

jnm2377 commented Dec 3, 2021

@johnbister @AlexanderMelox any updates on this?

@AlexanderMelox
Copy link
Contributor Author

Our motion designer is going to do QA on the animation (any last minute tweaks) and adding the styles to the styles package today

@AlexanderMelox
Copy link
Contributor Author

@mjabbink I think I just solved the issue! Just pushed so the new preview link should be live soon

@AlexanderMelox
Copy link
Contributor Author

@mjabbink
Copy link

thanks @AlexanderMelox Have you looked at this animation in context of a UI? I like this but I also wonder if it’s too much for what it is? It certainly get’s a visual emphasis and maybe that’s a good thing in context of all the other UI elements/components.

@jnm2377
Copy link
Contributor

jnm2377 commented Jan 26, 2022

@johnbister do you have feedback on the animation? on the dev side the code looks good, but this needs design review/approval before it could be merged.

@johnbister
Copy link
Contributor

@jnm2377 The motion looks great to me, but I have some concerns about how this fits into the larger context of a UI and our other components like I mentioned on 11/26. It seems @mjabbink has some concerns there as well. That being said, I am happy to approve it and let's see how it influences motion in the future.

johnbister
johnbister approved these changes Jan 27, 2022
@johnbister
Copy link
Contributor

Thanks for the reminder @jnm2377 😄

@AlexanderMelox
Copy link
Contributor Author

We're creating a prototype to showcase the content switcher with animated elements under

@jnm2377
Copy link
Contributor

jnm2377 commented Jan 27, 2022

Hmm... @johnbister we don't have to approve the PR if you and Mike still have questions around it. Maybe we should close this PR until @AlexanderMelox designers have some more answers/prototypes for our design team to give feedback on. It seems like the 2 big questions are:

  1. how and if does this motion work for similar components like Tabs?
  2. how does this motion look/work in the context of a full UI?

I think these are good discussions to be had in the issue, and if/once we reach an agreement then we can re-open the PR?

@johnbister
Copy link
Contributor

I stand by my decision to approve it. Great work @AlexanderMelox

@AlexanderMelox
Copy link
Contributor Author

AlexanderMelox commented Jan 28, 2022

Here's a prototype in the context of a UI
https://codesandbox.io/s/content-switcher-motion-carbon-vanilla-forked-pmicq?file=/src/index.js

I don't think it's too much but can add that breathe of fresh air to some stale pages, especially while switching contents.

I got the green light from my team to merge this PR ✅

@johnbister
Copy link
Contributor

@AlexanderMelox Thanks for sending the example--looks cool! I can definitely see how this might influence other components so we'll be careful to see how it plays out. Just a thought for down the road, but this kind of motion would look great for a dark/light theme switcher, too.

@AlexanderMelox
Copy link
Contributor Author

@abbeyhrt when you have the time, can you review this PR so it can be merged? Thanks!

Copy link
Contributor

@abbeyhrt abbeyhrt left a comment

Choose a reason for hiding this comment

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

Sorry for the delay but it looks good to me! Thank you for the contribution!

@kodiakhq kodiakhq bot merged commit 3068b42 into carbon-design-system:main Feb 3, 2022
@jnm2377 jnm2377 mentioned this pull request Feb 10, 2022
22 tasks
@mjabbink
Copy link

Looks good @AlexanderMelox

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Content Switcher: Adds micro-interaction
7 participants