Skip to content

Commit e111cfb

Browse files
author
riteshsangwan
committed
form field error styling
1 parent 9d72748 commit e111cfb

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

src/routes/ResetPassword/components/ResetPasswordView.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ class ResetPasswordView extends Component {
2525
<form onSubmit={handleSubmit((data) => _self.onSubmit({...data, code: token}))}>
2626
<div styleName="row">
2727
<label htmlFor="email">Email:</label>
28-
<FormField {...fields.email}>
28+
<FormField {...fields.email} className="email-field">
2929
<TextField {...fields.email} label={'email'} />
3030
</FormField>
3131
</div>
3232
<div styleName="row">
3333
<label htmlFor="password">Password:</label>
34-
<FormField {...fields.password}>
34+
<FormField {...fields.password} className="password-field">
3535
<TextField {...fields.password} label={'New Password'} />
3636
</FormField>
3737
</div>

src/routes/ResetPassword/components/ResetPasswordView.scss

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,17 @@
1010
border-top: 1px solid #e7e8ea;
1111
padding-top: 25px;
1212
}
13+
:global {
14+
.form-field {
15+
width: 100%;
16+
&.error {
17+
color: #ff3100;
18+
> div:first-child {
19+
border: 1px solid #ff3100;
20+
}
21+
}
22+
}
23+
}
1324
}
1425
.row {
1526
display: flex;
@@ -34,4 +45,4 @@
3445
}
3546
.actions {
3647
text-align: right;
37-
}
48+
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy