Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue #3241 #3253

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions client/modules/User/components/LoginForm.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
.form__field {
position: relative;
margin-bottom: 20px;
}

.form__input {
width: 100%;
padding: 10px;
font-size: 16px;
border: 1px solid #ccc;
border-radius: 4px;
}

.form__field__password {
position: relative;
}

.form__eye__icon {
position: absolute;
right: 10px; /* Align icon to the right */
top: 50%; /* Vertically center the icon */
transform: translateY(-50%); /* Adjust for centering */
background: transparent;
border: none;
cursor: pointer;
}

.form__eye__icon svg {
font-size: 20px; /* Adjust size of the eye icon */
}

3 changes: 2 additions & 1 deletion client/modules/User/components/LoginForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import Button from '../../../common/Button';
import { validateLogin } from '../../../utils/reduxFormUtils';
import { validateAndLoginUser } from '../actions';
import './LoginForm.css'; // Added import for the CSS

function LoginForm() {
const { t } = useTranslation();
Expand Down Expand Up @@ -98,4 +99,4 @@
);
}

export default LoginForm;
export default LoginForm;

Check failure on line 102 in client/modules/User/components/LoginForm.jsx

View workflow job for this annotation

GitHub Actions / Test and lint code base

Insert `⏎`
Loading