From 92b2c1d1e3920ec905d6424a0ca99b82aa0f72ce Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Mon, 10 Jun 2024 21:25:08 -0400 Subject: [PATCH] Make login screen input feels consistent (#1993) (#1994) --- public/apps/login/login-page.tsx | 3 +- .../__snapshots__/login-page.test.tsx.snap | 48 ++++--------------- 2 files changed, 9 insertions(+), 42 deletions(-) diff --git a/public/apps/login/login-page.tsx b/public/apps/login/login-page.tsx index f8bf6e5f4..66915dd9f 100644 --- a/public/apps/login/login-page.tsx +++ b/public/apps/login/login-page.tsx @@ -17,7 +17,6 @@ import React, { useState } from 'react'; import { EuiText, EuiFieldText, - EuiIcon, EuiSpacer, EuiButton, EuiImage, @@ -194,7 +193,7 @@ export function LoginPage(props: LoginPageDeps) { data-test-subj="user-name" aria-label="username_input" placeholder="Username" - prepend={} + icon="user" onChange={(e) => setUsername(e.target.value)} value={username} isInvalid={usernameValidationFailed} diff --git a/public/apps/login/test/__snapshots__/login-page.test.tsx.snap b/public/apps/login/test/__snapshots__/login-page.test.tsx.snap index 0fb0cb0a8..e75489902 100644 --- a/public/apps/login/test/__snapshots__/login-page.test.tsx.snap +++ b/public/apps/login/test/__snapshots__/login-page.test.tsx.snap @@ -44,14 +44,10 @@ exports[`Login page renders renders with config value for multiauth 1`] = ` - } value="" /> @@ -195,14 +191,10 @@ exports[`Login page renders renders with config value for multiauth with anonymo - } value="" /> @@ -364,14 +356,10 @@ exports[`Login page renders renders with config value with anonymous auth enable - } value="" /> @@ -483,14 +471,10 @@ exports[`Login page renders renders with config value with anonymous auth enable - } value="" /> @@ -602,14 +586,10 @@ exports[`Login page renders renders with config value: string 1`] = ` - } value="" /> @@ -703,14 +683,10 @@ exports[`Login page renders renders with config value: string array 1`] = ` - } value="" /> @@ -804,14 +780,10 @@ exports[`Login page renders renders with default value: string 1`] = ` - } value="" /> @@ -905,14 +877,10 @@ exports[`Login page renders renders with default value: string array 1`] = ` - } value="" />