From bcebe1d96a717b4d62440c15a4a1bb6abcff8ff3 Mon Sep 17 00:00:00 2001 From: Marco Beretta <81851188+berry-13@users.noreply.github.com> Date: Tue, 6 Oct 2026 22:06:43 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=90=20refactor:=20Give=20Sign-In=20Con?= =?UTF-8?q?trols=20Button,=20Input=20and=20Alert=20Variants=20(#16828)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * refactor: Give Sign-In Controls Button, Input and Alert Variants * fix: Load the Field Stylesheet From SecretInput * fix: Default the Floating Fields to the Placeholder Sentinel * test: Cover the Sign-In Control Roles in the Default Theme * test: Wait for the Floating Label Transition Before Reading It * test: Read the Floating Label Scale Property * fix: Keep Button Heights on Theme Roles and Honor Reduced Motion in Floating Fields --- client/src/components/Auth/AuthLayout.tsx | 5 +- client/src/components/Auth/ErrorMessage.tsx | 3 +- client/src/components/Auth/LoginForm.tsx | 29 +++-- client/src/components/Auth/Registration.tsx | 29 +++-- .../components/Auth/RequestPasswordReset.tsx | 12 +- client/src/components/Auth/ResetPassword.tsx | 26 +---- .../src/components/Auth/TwoFactorScreen.tsx | 15 ++- client/src/components/Auth/VerifyEmail.tsx | 9 +- client/src/style.css | 13 --- .../mock/scenarios/signin-controls.spec.ts | 104 ++++++++++++++++++ eslint-suppressions.json | 37 +------ packages/client/src/components/Alert.spec.tsx | 15 +++ packages/client/src/components/Alert.tsx | 14 ++- .../client/src/components/Button.spec.tsx | 8 ++ packages/client/src/components/Button.tsx | 17 ++- packages/client/src/components/Field.css | 15 +++ packages/client/src/components/Input.tsx | 10 +- .../src/components/SecretInput.spec.tsx | 12 ++ .../client/src/components/SecretInput.tsx | 13 ++- packages/client/src/components/floating.ts | 14 +++ packages/client/src/components/index.ts | 1 + 21 files changed, 271 insertions(+), 130 deletions(-) create mode 100644 e2e/specs/mock/scenarios/signin-controls.spec.ts create mode 100644 packages/client/src/components/Alert.spec.tsx create mode 100644 packages/client/src/components/floating.ts diff --git a/client/src/components/Auth/AuthLayout.tsx b/client/src/components/Auth/AuthLayout.tsx index fdd43eaea2..b14b7653ec 100644 --- a/client/src/components/Auth/AuthLayout.tsx +++ b/client/src/components/Auth/AuthLayout.tsx @@ -112,10 +112,7 @@ function AuthLayout({ )} > {!hasStartupConfigError && !isFetching && header && ( -