diff --git a/client/modules/User/components/LoginForm.css b/client/modules/User/components/LoginForm.css new file mode 100644 index 000000000..c56995db5 --- /dev/null +++ b/client/modules/User/components/LoginForm.css @@ -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 */ + } + \ No newline at end of file diff --git a/client/modules/User/components/LoginForm.jsx b/client/modules/User/components/LoginForm.jsx index becf41137..ffb65ca75 100644 --- a/client/modules/User/components/LoginForm.jsx +++ b/client/modules/User/components/LoginForm.jsx @@ -6,6 +6,7 @@ import { AiOutlineEye, AiOutlineEyeInvisible } from 'react-icons/ai'; 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(); @@ -98,4 +99,4 @@ function LoginForm() { ); } -export default LoginForm; +export default LoginForm; \ No newline at end of file