Skip to content

Commit

Permalink
Merge pull request #24254 from dantastisk/fix/23137
Browse files Browse the repository at this point in the history
fix: 23137 Slow animation on sign in input
  • Loading branch information
Joel Bettner committed Aug 10, 2023
2 parents e8540aa + 81f6dd6 commit 27b12b9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
6 changes: 3 additions & 3 deletions src/pages/signin/SignInPageLayout/BackgroundImage/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,29 @@ import React from 'react';
import PropTypes from 'prop-types';
import MobileBackgroundImage from '../../../../../assets/images/home-background--mobile.svg';
import DesktopBackgroundImage from '../../../../../assets/images/home-background--desktop.svg';
import styles from '../../../../styles/styles';

const defaultProps = {
isSmallScreen: false,
style: [],
};

const propTypes = {
isSmallScreen: PropTypes.bool,
pointerEvents: PropTypes.string.isRequired,
width: PropTypes.number.isRequired,
style: PropTypes.oneOfType([PropTypes.object, PropTypes.arrayOf(PropTypes.object)]),
};
function BackgroundImage(props) {
return props.isSmallScreen ? (
<MobileBackgroundImage
pointerEvents={props.pointerEvents}
width={props.width}
style={props.style}
style={styles.signInBackground}
/>
) : (
<DesktopBackgroundImage
pointerEvents={props.pointerEvents}
width={props.width}
style={styles.signInBackground}
/>
);
}
Expand Down
1 change: 0 additions & 1 deletion src/pages/signin/SignInPageLayout/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ function SignInPageLayout(props) {
isSmallScreen
pointerEvents="none"
width={variables.signInHeroBackgroundWidthMobile}
style={styles.signInBackgroundMobile}
/>
<SignInPageContent
welcomeHeader={props.welcomeHeader}
Expand Down
9 changes: 1 addition & 8 deletions src/styles/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -1194,14 +1194,7 @@ const styles = {
left: 0,
},

signInBackgroundDesktop: {
position: 'absolute',
bottom: 0,
left: 0,
minHeight: 700,
},

signInBackgroundMobile: {
signInBackground: {
position: 'absolute',
bottom: 0,
left: 0,
Expand Down

0 comments on commit 27b12b9

Please sign in to comment.