Skip to content

Commit

Permalink
Refactor Choice button borders
Browse files Browse the repository at this point in the history
  • Loading branch information
mcbouslog committed Nov 19, 2024
1 parent 9e9d764 commit c1b97ad
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ const StyledBox = styled(Box)`
}
`

const StyledButton = styled(Button)`
border: 1px solid ${props => props.theme.global.colors.brand};
border-radius: 4px;
`

const StyledPrimaryButton = styled(PrimaryButton)`
border-radius: 4px;
`


function Choice({
answers = {},
choiceId = '',
Expand Down Expand Up @@ -176,12 +186,12 @@ function Choice({
margin={{ top: '30px' }}
pad={{ top: 'small' }}
>
<Button
<StyledButton
fill='horizontal'
label={t('SurveyTask.Choice.cancel')}
onClick={() => handleDelete(choiceId)}
/>
<PrimaryButton
<StyledPrimaryButton
data-testid='choice-identify-button'
disabled={!allowIdentify}
fill='horizontal'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function QuestionInput (props) {
right: 'xsmall'
}}
pad={{ horizontal: 'xsmall' }}
round={type === 'radio' ? 'full' : false}
round={type === 'radio' ? 'full' : '4px'}
width={type === 'radio' ? { min: '40px' } : { min: '110px' }}
>
<input
Expand Down

0 comments on commit c1b97ad

Please sign in to comment.