Skip to content

Commit

Permalink
fix(app): fix step meter tearing during wizard flows (#13920)
Browse files Browse the repository at this point in the history
Add the ODD optimizations to prevent step meter tearing that occurs when pressing "Go Back" during
various flows.
  • Loading branch information
mjhuff committed Nov 6, 2023
1 parent 916a061 commit c15d30e
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions app/src/atoms/StepMeter/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,21 @@ export const StepMeter = (props: StepMeterProps): JSX.Element => {
height: ${SPACING.spacing12};
}
`

const ODD_ANIMATION_OPTIMIZATIONS = `
backface-visibility: hidden;
perspective: 1000;
will-change: transform;
`

const StepMeterBar = css`
${ODD_ANIMATION_OPTIMIZATIONS}
position: ${POSITION_ABSOLUTE};
top: 0;
height: 100%;
background-color: ${COLORS.blueEnabled};
width: ${percentComplete};
webkit-transition: width 0.5s ease-in-out;
moz-transition: width 0.5s ease-in-out;
o-transition: width 0.5s ease-in-out;
transform: translateX(0);
transition: width 0.5s ease-in-out;
`

Expand Down

0 comments on commit c15d30e

Please sign in to comment.