Skip to content

Commit

Permalink
fixed sizing of email icon on registration page (#1356)
Browse files Browse the repository at this point in the history
  • Loading branch information
KshitijTodkar48 authored Jan 2, 2024
1 parent 31ac00c commit 84ec714
Showing 1 changed file with 24 additions and 22 deletions.
46 changes: 24 additions & 22 deletions src/screens/LoginPage/LoginPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -399,29 +399,31 @@ function loginPage(): JSX.Element {
</div>
</Col>
</Row>
<Form.Label>{t('email')}</Form.Label>
<div className="position-relative">
<Form.Control
type="email"
data-testid="signInEmail"
className="mb-3"
placeholder={t('email')}
autoComplete="username"
required
value={signformState.signEmail}
onChange={(e): void => {
setSignFormState({
...signformState,
signEmail: e.target.value.toLowerCase(),
});
}}
/>
<Button
tabIndex={-1}
className={`position-absolute z-10 bottom-0 end-0 h-100 d-flex justify-content-center align-items-center`}
>
<EmailOutlinedIcon />
</Button>
<Form.Label>{t('email')}</Form.Label>
<div className="position-relative">
<Form.Control
type="email"
data-testid="signInEmail"
className="mb-3"
placeholder={t('email')}
autoComplete="username"
required
value={signformState.signEmail}
onChange={(e): void => {
setSignFormState({
...signformState,
signEmail: e.target.value.toLowerCase(),
});
}}
/>
<Button
tabIndex={-1}
className={`position-absolute z-10 bottom-0 end-0 h-100 d-flex justify-content-center align-items-center`}
>
<EmailOutlinedIcon />
</Button>
</div>
</div>

<div className="position-relative mb-3">
Expand Down

0 comments on commit 84ec714

Please sign in to comment.