Skip to content
Snippets Groups Projects
Unverified Commit 431a9395 authored by Raphael Krut-Landau's avatar Raphael Krut-Landau Committed by GitHub
Browse files

fix: Don't require submit buttons to have the 'filled' variant (#45247)

This PR also specifies the 'filled' variant for the question duplication
modal, since the previous default 'filled' variant for submit button was
added to make that specific button filled.
parent fdd75ffc
Branches
Tags
No related merge requests found
......@@ -44,7 +44,6 @@ export const FormSubmitButton = forwardRef(function FormSubmitButton(
type="submit"
color={submitColor}
disabled={isDisabled}
variant="filled"
>
{submitLabel}
</Button>
......
......@@ -88,7 +88,7 @@ export const CopyQuestionForm = ({
{!!onCancel && (
<Button type="button" onClick={onCancel}>{t`Cancel`}</Button>
)}
<FormSubmitButton label={t`Duplicate`} />
<FormSubmitButton label={t`Duplicate`} variant="filled" />
</FormFooter>
</Form>
</FormProvider>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment