Added eye icon to password field in login#5004
Added eye icon to password field in login#5004Aryakoste wants to merge 5 commits intoDSpace:mainfrom
Conversation
|
@Aryakoste, I feel this is the straightest approach to add some way to show the password, but it does not handle the edge cases mentioned in the linked issue:
Furthermore, I think that our customization should never be seen on mobile devices, since mobile browsers handle the password show/hide buttons natively. |
|
@AndreaBarbasso Will make the mobile device change. I had added the Microsoft edge edge case. But was confused that if i should keep native eye icon of Microsoft edge or should I show our newly added icon. Currently it shows newly added icon. So should I show native in Microsoft edge. |
|
I have made the changes |
|
Hi @Aryakoste, |
|
@Aryakoste : This PR appears to be failing automated tests. Please update the PR so that tests can succeed. |
|
yeah will look into it but i think the failing test is not related to this PR. |
|
@Aryakoste : Took a more detailed look and the test failure appears to be a random failure. So, I've triggered a rerun of the tests. Hopefully they will succeed this time. |
|
@Aryakoste, sorry if I wasn’t clear enough earlier. My concern is not about integrating the solution with Microsoft Edge’s native handling of the password field, but rather about the possibility that similar native implementations may be adopted by other browsers in the future as well. For this reason, the code you added - while helpful for addressing the current Microsoft Edge behavior - is not future-proof with respect to other browsers (or even Edge itself, should the way it displays the eye icon change). I think it's best to use an input group button to avoid showing our button on top of the input field, since browsers are more likely to use that placement as well for native implementations. |
|
Will make this change |
|
@Aryakoste General reminder for all new feature PRs currently under review: there is still a possibility of getting this into 10.0, in case you have the capacity to address requested changes at the moment. Feature merge deadline will be Friday 3/27. Thank you! |
|
Yeah will make the change today itself |
References
Add references/links to any related issues or PRs. These may include:
Description
Added eye icon in password input field of login which toggles.
Checklist
This checklist provides a reminder of what we are going to look for when reviewing your PR. You do not need to complete this checklist prior creating your PR (draft PRs are always welcome).
However, reviewers may request that you complete any actions in this list if you have not done so. If you are unsure about an item in the checklist, don't hesitate to ask. We're here to help!
mainbranch of code (unless it is a backport or is fixing an issue specific to an older branch).npm run lintnpm run check-circ-deps)package.json), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.