Skip to content

Commit

Permalink
[frontend] contain underline quiz buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
Fbasham committed Jun 20, 2023
1 parent 84cab46 commit 553c9d8
Showing 1 changed file with 18 additions and 14 deletions.
32 changes: 18 additions & 14 deletions frontend/src/components/quiz/questions/QuestionWhere.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,26 +60,30 @@ export const QuestionWhere: FC<QuestionWhereProps> = ({ values, setFieldValue })
aria-label={t('questions.question-where.option-canada-pt-60-or-more')}
data-cy="canada-pt-60-or-more-button"
>
<Trans
i18nKey="questions.question-where.option-canada-pt-60-or-more"
ns="quiz"
components={{
span: <span className="underline-offset-2 px-1 underline"/>,
}}
/>
<div>
<Trans
i18nKey="questions.question-where.option-canada-pt-60-or-more"
ns="quiz"
components={{
span: <span className="px-1 underline underline-offset-2" />,
}}
/>
</div>
</ToggleButton>
<ToggleButton
value="canada-pt-less-than-60"
aria-label={t('questions.question-where.option-canada-pt-less-than-60')}
data-cy="canada-pt-less-than-60-button"
>
<Trans
i18nKey="questions.question-where.option-canada-pt-less-than-60"
ns="quiz"
components={{
span: <span className="underline-offset-2 px-1 underline" />,
}}
/>
<div>
<Trans
i18nKey="questions.question-where.option-canada-pt-less-than-60"
ns="quiz"
components={{
span: <span className="px-1 underline underline-offset-2" />,
}}
/>
</div>
</ToggleButton>
<ToggleButton
value="outside-canada"
Expand Down

0 comments on commit 553c9d8

Please sign in to comment.