fix: fix register button width
This commit is contained in:
committed by
Syed Sajjad Hussain Shah
parent
90f650ce3e
commit
b219fe3683
@@ -31,6 +31,7 @@ import {
|
||||
CONTROL,
|
||||
FIRST_STEP,
|
||||
getMultiStepRegistrationNextStep,
|
||||
getRegisterButtonClassInExperiment,
|
||||
getRegisterButtonLabelInExperiment,
|
||||
getRegisterButtonSubmitStateInExperiment,
|
||||
MULTI_STEP_REGISTRATION_EXP_VARIATION,
|
||||
@@ -522,7 +523,10 @@ const RegistrationPage = (props) => {
|
||||
name="register-user"
|
||||
type="submit"
|
||||
variant="brand"
|
||||
className="mt-4 mb-4"
|
||||
className={`
|
||||
mt-4 mb-4
|
||||
${getRegisterButtonClassInExperiment(multiStepRegistrationExpVariation, multiStepRegistrationPageStep)}
|
||||
`}
|
||||
state={getRegisterButtonSubmitStateInExperiment(
|
||||
submitState,
|
||||
validationsSubmitState,
|
||||
|
||||
@@ -75,6 +75,13 @@ export const getRegisterButtonLabelInExperiment = (
|
||||
return existingButtonLabel;
|
||||
};
|
||||
|
||||
export const getRegisterButtonClassInExperiment = (expVariation, registerPageStep) => {
|
||||
if (expVariation === MULTI_STEP_REGISTRATION_EXP_VARIATION && registerPageStep === FIRST_STEP) {
|
||||
return 'continue-button';
|
||||
}
|
||||
return 'register-button';
|
||||
};
|
||||
|
||||
export const getRegisterButtonSubmitStateInExperiment = (
|
||||
registerSubmitState, validationsSubmitState, expVariation, registerPageStep,
|
||||
) => {
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
.register-button {
|
||||
min-width: 14.4rem;
|
||||
}
|
||||
|
||||
.continue-button {
|
||||
min-width: 7rem;
|
||||
}
|
||||
|
||||
.pgn__form-autosuggest__wrapper > .pgn__form-group {
|
||||
margin-bottom: 0 !important;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user