Skip to content

Commit

Permalink
(PC-32410) feat(identityCheck): fix quit button size in Stepper (#7055)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucasbeneston authored Oct 18, 2024
1 parent 587aaa9 commit d617309
Show file tree
Hide file tree
Showing 2 changed files with 104 additions and 86 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1158,121 +1158,132 @@ exports[`Stepper navigation should render correctly 1`] = `
}
/>
<View
accessibilityLabel="Abandonner"
accessibilityState={
{
"busy": undefined,
"checked": undefined,
"disabled": undefined,
"expanded": undefined,
"selected": undefined,
}
}
accessibilityValue={
{
"max": undefined,
"min": undefined,
"now": undefined,
"text": undefined,
}
}
accessible={true}
focusable={true}
onClick={[Function]}
onResponderGrant={[Function]}
onResponderMove={[Function]}
onResponderRelease={[Function]}
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
style={
[
[
{
"userSelect": "auto",
},
{
"alignItems": "center",
"borderRadius": 24,
"flexDirection": "row",
"justifyContent": "center",
"maxWidth": 500,
"minHeight": 40,
"paddingBottom": 2,
"paddingLeft": 2,
"paddingRight": 2,
"paddingTop": 2,
"width": "100%",
},
{
"backgroundColor": "transparent",
},
],
{
"opacity": 1,
"justifyContent": "center",
"minHeight": 60,
},
]
}
testID="Abandonner"
>
<View
accessibilityLabel="Abandonner"
accessibilityState={
{
"busy": undefined,
"checked": undefined,
"disabled": undefined,
"expanded": undefined,
"selected": undefined,
}
}
accessibilityValue={
{
"max": undefined,
"min": undefined,
"now": undefined,
"text": undefined,
}
}
accessible={true}
focusable={true}
onClick={[Function]}
onResponderGrant={[Function]}
onResponderMove={[Function]}
onResponderRelease={[Function]}
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
style={
[
[
{
"userSelect": "auto",
},
{
"alignItems": "center",
"borderRadius": 24,
"flexDirection": "row",
"justifyContent": "center",
"maxWidth": 500,
"minHeight": 40,
"paddingBottom": 2,
"paddingLeft": 2,
"paddingRight": 2,
"paddingTop": 2,
"width": "100%",
},
{
"backgroundColor": "transparent",
},
],
{
"alignItems": "center",
"flexDirection": "row",
"opacity": 1,
},
]
}
testID="Abandonner"
>
<View
style={
[
{
"alignItems": "center",
"flexDirection": "row",
"flexShrink": 0,
},
]
}
>
<View
fill="#161617"
height={20}
testID="button-icon-left"
width={20}
style={
[
{
"flexDirection": "row",
"flexShrink": 0,
},
]
}
>
<Text>
button-icon-left-SVG-Mock
</Text>
<View
fill="#161617"
height={20}
testID="button-icon-left"
width={20}
>
<Text>
button-icon-left-SVG-Mock
</Text>
</View>
<View
numberOfSpaces={2}
style={
[
{
"width": 8,
},
]
}
/>
</View>
<View
numberOfSpaces={2}
<Text
adjustsFontSizeToFit={false}
numberOfLines={1}
style={
[
{
"width": 8,
"color": "#161617",
"fontFamily": "Montserrat-Bold",
"fontSize": 15,
"lineHeight": 20,
"maxWidth": "100%",
},
]
}
/>
>
Abandonner
</Text>
</View>
<Text
adjustsFontSizeToFit={false}
numberOfLines={1}
style={
[
{
"color": "#161617",
"fontFamily": "Montserrat-Bold",
"fontSize": 15,
"lineHeight": 20,
"maxWidth": "100%",
},
]
}
>
Abandonner
</Text>
</View>
</View>
</View>
Expand Down
17 changes: 12 additions & 5 deletions src/features/identityCheck/pages/Stepper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,13 @@ export const Stepper = () => {
{stepList}
<Spacer.Flex flex={1} />

<ButtonTertiaryBlack
icon={Invalidate}
wording="Abandonner"
onPress={showQuitIdentityCheckModal}
/>
<QuitButtonContainer>
<ButtonTertiaryBlack
icon={Invalidate}
wording="Abandonner"
onPress={showQuitIdentityCheckModal}
/>
</QuitButtonContainer>
</Container>
<QuitIdentityCheckModal
visible={visible}
Expand Down Expand Up @@ -151,6 +153,11 @@ const StepButtonContainer = styled.View({
alignItems: 'center',
})

const QuitButtonContainer = styled.View({
justifyContent: 'center',
minHeight: getSpacing(15),
})

const StyledSubtitle = ({ subtitle }: { subtitle: string }) => (
<React.Fragment>
<Spacer.Column numberOfSpaces={2} />
Expand Down

0 comments on commit d617309

Please sign in to comment.