diff --git a/.changeset/clever-balloons-sparkle.md b/.changeset/clever-balloons-sparkle.md new file mode 100644 index 000000000..c752d26ee --- /dev/null +++ b/.changeset/clever-balloons-sparkle.md @@ -0,0 +1,5 @@ +--- +"@bigcommerce/catalyst-core": patch +--- + +update login page & error message styles diff --git a/core/app/[locale]/(default)/(auth)/change-password/_components/change-password-form.tsx b/core/app/[locale]/(default)/(auth)/change-password/_components/change-password-form.tsx index 6ee556059..0ba19ceec 100644 --- a/core/app/[locale]/(default)/(auth)/change-password/_components/change-password-form.tsx +++ b/core/app/[locale]/(default)/(auth)/change-password/_components/change-password-form.tsx @@ -127,7 +127,7 @@ export const ChangePasswordForm = ({ customerId, customerToken }: Props) => { /> value !== newPassword} > {t('confirmPasswordValidationMessage')} diff --git a/core/app/[locale]/(default)/(auth)/login/_components/login-form.tsx b/core/app/[locale]/(default)/(auth)/login/_components/login-form.tsx index c56551ad8..074aeab15 100644 --- a/core/app/[locale]/(default)/(auth)/login/_components/login-form.tsx +++ b/core/app/[locale]/(default)/(auth)/login/_components/login-form.tsx @@ -75,7 +75,7 @@ export const LoginForm = () => {

{t('Form.error')}

)} -
+ {t('Form.emailLabel')} @@ -90,7 +90,7 @@ export const LoginForm = () => { /> {t('Form.enterEmailMessage')} @@ -109,18 +109,18 @@ export const LoginForm = () => { /> {t('Form.entePasswordMessage')} -
+
{t('Form.forgotPassword')} diff --git a/core/app/[locale]/(default)/(auth)/login/forgot-password/_components/reset-password-form/index.tsx b/core/app/[locale]/(default)/(auth)/login/forgot-password/_components/reset-password-form/index.tsx index 8a2e55d4f..71231f376 100644 --- a/core/app/[locale]/(default)/(auth)/login/forgot-password/_components/reset-password-form/index.tsx +++ b/core/app/[locale]/(default)/(auth)/login/forgot-password/_components/reset-password-form/index.tsx @@ -144,7 +144,7 @@ export const ResetPasswordForm = ({ reCaptchaSettings }: Props) => { /> {t('emailValidationMessage')} diff --git a/core/app/[locale]/(default)/(auth)/login/page.tsx b/core/app/[locale]/(default)/(auth)/login/page.tsx index 6f372ba62..ea062135b 100644 --- a/core/app/[locale]/(default)/(auth)/login/page.tsx +++ b/core/app/[locale]/(default)/(auth)/login/page.tsx @@ -29,13 +29,13 @@ export default function Login({ params }: Props) { return (
-

{t('heading')}

+

{t('heading')}

-

{t('CreateAccount.heading')}

+

{t('CreateAccount.heading')}

{t('CreateAccount.accountBenefits')}

-
    +
    • {t('CreateAccount.fastCheckout')}
    • {t('CreateAccount.multipleAddresses')}
    • {t('CreateAccount.ordersHistory')}
    • diff --git a/core/app/[locale]/(default)/account/(tabs)/settings/_components/text-field.tsx b/core/app/[locale]/(default)/account/(tabs)/settings/_components/text-field.tsx index f9dae8eb5..a5b2dce8b 100644 --- a/core/app/[locale]/(default)/account/(tabs)/settings/_components/text-field.tsx +++ b/core/app/[locale]/(default)/account/(tabs)/settings/_components/text-field.tsx @@ -50,7 +50,7 @@ export const TextField = ({ {isRequired && ( {t(fieldNameById ?? 'empty')} diff --git a/core/app/[locale]/(default)/account/(tabs)/settings/change-password/_components/change-password-form.tsx b/core/app/[locale]/(default)/account/(tabs)/settings/change-password/_components/change-password-form.tsx index 7ac3f221b..f08a81fd6 100644 --- a/core/app/[locale]/(default)/account/(tabs)/settings/change-password/_components/change-password-form.tsx +++ b/core/app/[locale]/(default)/account/(tabs)/settings/change-password/_components/change-password-form.tsx @@ -180,7 +180,7 @@ export const ChangePasswordForm = () => { /> {t('notEmptyMessage')} @@ -202,13 +202,13 @@ export const ChangePasswordForm = () => { /> {t('notEmptyMessage')} {!isNewPasswordValid && ( - + {t('newPasswordValidationMessage')} )} @@ -229,13 +229,13 @@ export const ChangePasswordForm = () => { /> {t('notEmptyMessage')} {!isConfirmPasswordValid && ( - + {t('confirmPasswordValidationMessage')} )} diff --git a/core/components/form-fields/checkboxes.tsx b/core/components/form-fields/checkboxes.tsx index 06226e8d5..f198119f4 100644 --- a/core/components/form-fields/checkboxes.tsx +++ b/core/components/form-fields/checkboxes.tsx @@ -110,7 +110,7 @@ export const Checkboxes = ({
{validationError && ( - + {t('empty')} )} diff --git a/core/components/form-fields/date.tsx b/core/components/form-fields/date.tsx index 88424b0ed..45f533e25 100644 --- a/core/components/form-fields/date.tsx +++ b/core/components/form-fields/date.tsx @@ -96,7 +96,7 @@ export const DateField = ({ />
{validationError && ( - + {t('empty')} )} diff --git a/core/components/form-fields/multiline-text.tsx b/core/components/form-fields/multiline-text.tsx index cda447707..b2aaf86a4 100644 --- a/core/components/form-fields/multiline-text.tsx +++ b/core/components/form-fields/multiline-text.tsx @@ -52,7 +52,7 @@ export const MultilineText = ({
{field.isRequired && ( {t('empty')} diff --git a/core/components/form-fields/numbers-only.tsx b/core/components/form-fields/numbers-only.tsx index 701a5f343..a6006a1d0 100644 --- a/core/components/form-fields/numbers-only.tsx +++ b/core/components/form-fields/numbers-only.tsx @@ -48,21 +48,21 @@ export const NumbersOnly = ({ defaultValue, field, isValid, name, onChange }: Nu
{field.isRequired && ( {t('empty')} )} {t('numbersOnly')} {Boolean(field.minNumber) && ( {t('numbersUnderflow', { min: field.minNumber })} @@ -70,7 +70,7 @@ export const NumbersOnly = ({ defaultValue, field, isValid, name, onChange }: Nu )} {Boolean(field.maxNumber) && ( {t('numbersOverflow', { max: field.maxNumber })} diff --git a/core/components/form-fields/password.tsx b/core/components/form-fields/password.tsx index 01ab1ca48..06ee523e7 100644 --- a/core/components/form-fields/password.tsx +++ b/core/components/form-fields/password.tsx @@ -48,7 +48,7 @@ export const Password = ({ defaultValue, field, isValid, name, onChange }: Passw
{field.isRequired && ( {t('password')} @@ -56,7 +56,7 @@ export const Password = ({ defaultValue, field, isValid, name, onChange }: Passw )} {fieldName === 'confirmPassword' && ( { return !isValid; }} diff --git a/core/components/form-fields/picklist.tsx b/core/components/form-fields/picklist.tsx index 245cde0cd..be4824f0d 100644 --- a/core/components/form-fields/picklist.tsx +++ b/core/components/form-fields/picklist.tsx @@ -85,7 +85,7 @@ export const Picklist = ({
{validationError && ( - + {t('empty')} )} diff --git a/core/components/form-fields/radio-buttons.tsx b/core/components/form-fields/radio-buttons.tsx index 80d044e40..013f5dd8e 100644 --- a/core/components/form-fields/radio-buttons.tsx +++ b/core/components/form-fields/radio-buttons.tsx @@ -56,7 +56,7 @@ export const RadioButtons = ({ />
{validationError && ( - + {t('empty')} )} diff --git a/core/components/form-fields/text.tsx b/core/components/form-fields/text.tsx index 2566e6faa..4e9257025 100644 --- a/core/components/form-fields/text.tsx +++ b/core/components/form-fields/text.tsx @@ -47,7 +47,7 @@ export const Text = ({ defaultValue, field, isValid, name, onChange, type }: Tex
{field.isRequired && ( {t(fieldName ?? 'empty')} @@ -55,7 +55,7 @@ export const Text = ({ defaultValue, field, isValid, name, onChange, type }: Tex )} {fieldName === 'email' && ( {t('email')}