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

[FIX] updates to smoove workflow animations #43

Merged
merged 4 commits into from
Jul 23, 2020

Conversation

pez-work
Copy link
Contributor

@pez-work pez-work commented Jul 21, 2020

  • updated step/card structure
  • add missing slide-in-left animation (WTF?)
  • cleanup keyframe names and namespacing
  • workflow structure cleanup

Summary

Submitter Checklist:

  • Demo new or changed functionality to stakeholders
  • Perform self-review (see reviewer checklist)
  • Annotate MR with comments for reviewer
  • Document any new patterns or features on peak-design-system
  • Assign a team member who should specifically review this code
  • Address reviewer feedback, if any, and assign back to reviewer

Reviewer Checklist:

  • Version bump in package.json
  • Visually review significant UI changes
  • Assign @pez-wb as reviewer if needed
  • Assign back to submitter with feedback

- updated step/card structure
- add missing slide-in-left animation (WTF?)
- cleanup keyframe names and namespacing
- workflow structure cleanup
0% {
transform: translateX(0);
}
100% {
transform: translateX(100%);
transform: translateX(-50%);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

no longer requires the calc() to adjust for the card size.

}
100% {
transform: translateX(0);
transform: translateX(50%);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

no longer requires the calc() to adjust for the card size.

@keyframes step-slide-in-left {

// SLIDE IN LEFT
@keyframes slide-in-left {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed .step name space and step- prefixes

&.slide-out-left {
position: absolute;
animation: 0.3s ease-in-out slide-out-left;
.card { animation: 0.3s ease-in-out fade-out; }
Copy link
Contributor Author

Choose a reason for hiding this comment

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

  • slide in/outs only effect the step
  • fade in/outs only effect the card

> footer {
margin: 1.25rem 1.5rem;
}
.card {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

moved all workflow related .step and .card styling here

}
}
overflow-y: auto;
overflow-x: hidden;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

removes horizontal scroll bars on transition animations.

Copy link
Contributor

@alex-wb alex-wb left a comment

Choose a reason for hiding this comment

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

I tested against the new workflow component and after updating the class names it works like a charm. The other pre-workflow-component workflows will need to be updated which should be done in another PR in WB.

- simplify required classes
@@ -7,6 +7,7 @@
align-items: center;
justify-content: center;

background-color: $white;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

i don't think this was necessary to separate out

Copy link
Contributor

@travis-wb travis-wb Jul 22, 2020

Choose a reason for hiding this comment

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

What page might I go to to see the effects of this file? Doesn't seem like it has anything to do with any existing workflows.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

okay, yeah, looks good there!

@@ -1,10 +1,16 @@
.modal-page {
.modal-page,
.workflow-page {
Copy link
Contributor

Choose a reason for hiding this comment

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

Are you able to point me in the direction of a workflow that uses this so that I can test?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@@ -1,25 +1,71 @@
.workflow {
Copy link
Contributor

@travis-wb travis-wb Jul 22, 2020

Choose a reason for hiding this comment

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

On the beneficiaries workflow, I see that when the content of a step is longer than the browser window and you scroll down, the banner stays with the content instead of sticking to the window. Is that according to design specs?

@travis-wb
Copy link
Contributor

I just want to note that this does seem to be a breaking change. As such make sure nobody bumps WB peak version past this before your WB fix is out. According to SemVer, thaat might mean this need to be 3.0.0.

@pez-work pez-work merged commit d52df3e into master Jul 23, 2020
@pez-work pez-work deleted the fix.workflow-animations branch July 23, 2020 18:32
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.

None yet

3 participants