From a0248855b85fe4a95d5b941b98b9d34cbc46298f Mon Sep 17 00:00:00 2001 From: Danny Banks Date: Wed, 17 Jul 2024 12:02:21 -0700 Subject: [PATCH] fix(authenticator): fixing visual inconsistencies (#5389) --- .changeset/silver-dolls-report.md | 11 ++++++++++ .../ConfirmSignUp/ConfirmSignUp.tsx | 3 +-- .../FederatedSignInButton.tsx | 1 - .../FederatedSignInButton.test.tsx.snap | 8 +++---- .../ForceNewPassword/ForceNewPassword.tsx | 2 -- .../Authenticator/SignIn/SignIn.tsx | 10 ++------- .../Authenticator/SignUp/SignUp.tsx | 3 +-- .../shared/ConfirmSignInFooter.tsx | 9 +------- .../shared/TwoButtonSubmitFooter.tsx | 21 ++++++------------- 9 files changed, 26 insertions(+), 42 deletions(-) create mode 100644 .changeset/silver-dolls-report.md diff --git a/.changeset/silver-dolls-report.md b/.changeset/silver-dolls-report.md new file mode 100644 index 00000000000..6d0c4ef86e7 --- /dev/null +++ b/.changeset/silver-dolls-report.md @@ -0,0 +1,11 @@ +--- +"@aws-amplify/ui-react": patch +--- + +fix(authenticator): fixing visual inconsistencies + +- Removing any style props from buttons on authenticator to fix font weight inconsistencies +- Moved the in the Authenticator to be in the same location in the DOM in each view +- Made the link buttons consistent across Authenticator views + +Fixes #5156 diff --git a/packages/react/src/components/Authenticator/ConfirmSignUp/ConfirmSignUp.tsx b/packages/react/src/components/Authenticator/ConfirmSignUp/ConfirmSignUp.tsx index 57ee9f446c8..bfd7fca371d 100644 --- a/packages/react/src/components/Authenticator/ConfirmSignUp/ConfirmSignUp.tsx +++ b/packages/react/src/components/Authenticator/ConfirmSignUp/ConfirmSignUp.tsx @@ -70,12 +70,11 @@ export function ConfirmSignUp({ type="submit" loadingText={getConfirmingText()} isLoading={isPending} - fontWeight="normal" > {getConfirmText()} - diff --git a/packages/react/src/components/Authenticator/FederatedSignIn/FederatedSignInButtons/FederatedSignInButton.tsx b/packages/react/src/components/Authenticator/FederatedSignIn/FederatedSignInButtons/FederatedSignInButton.tsx index c4e5695ad2e..4706d577ccb 100644 --- a/packages/react/src/components/Authenticator/FederatedSignIn/FederatedSignInButtons/FederatedSignInButton.tsx +++ b/packages/react/src/components/Authenticator/FederatedSignIn/FederatedSignInButtons/FederatedSignInButton.tsx @@ -120,7 +120,6 @@ export const FederatedSignInButton = ( +