Skip to content

Commit

Permalink
Explicitly set color of all StyledButtons to #A017B7. See #71
Browse files Browse the repository at this point in the history
  • Loading branch information
jasny committed May 26, 2023
1 parent e7cedff commit a09c2f1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/styles/StyledButton.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const StyledButton = styled(Button)`
font-size: 16px;
font-weight: 800;
${props => props.mode === `contained` && props.disabled === false
? `background-color: ${props.color || '#A017B7'}; border-color: ${props.color || '#A017B7'}; border-width: 1px; color: #ffffff;`
: `border-width: 1px; color: ${props.color || '#A017B7'}; border-color: ${props.color || '#A017B7'};`};
? `background-color: ${props.color}; border-color: ${props.color}; border-width: 1px; color: #ffffff;`
: `border-width: 1px; color: ${props.color}; border-color: ${props.color};`};
${props => props.disabled === true && `border-color: transparent;`};
`
2 changes: 2 additions & 0 deletions src/screens/RegisterAccountScreen/RegisterAccountScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ export default function RegisterAccountScreen({ navigation, route }: RootStackSc
?
<StyledButton
mode="contained"
color="#A017B7"
disabled={false}
uppercase={false}
labelStyle={{ fontWeight: '400', fontSize: 16, width: '100%' }}
Expand All @@ -249,6 +250,7 @@ export default function RegisterAccountScreen({ navigation, route }: RootStackSc
:
<StyledButton
mode="contained"
color="#A017B7"
disabled={false}
uppercase={false}
labelStyle={{ fontWeight: '400', fontSize: 16, width: '100%' }}
Expand Down
1 change: 1 addition & 0 deletions src/screens/SignUpScreen/SignUpScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export default function SignUpScreen({ navigation }: RootStackScreenProps<'SignU
</StyledButton>
<StyledButton
mode="outlined"
color="#A017B7"
uppercase={false}
labelStyle={{ fontWeight: '400', fontSize: 16, width: '90%' }}
onPress={() => {
Expand Down

0 comments on commit a09c2f1

Please sign in to comment.