-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
fix(Password): Wrong icon for show/hide password toggle #15825
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
Your changes have resulted in a mismatch with the show/hide icon templates. I tried to create a pull request to your branch, but failed. Your PR should be updated with the following changes: Note: Your PR fixes the PrimeNG demo, but would break code that were using the show and/or hide icon templates |
Thanks for double check. I will add your code too. |
Now I did the modifications. Could you check it again, please? Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After the most recent changes, the show/hide icon templates are now consistent with the Eye/EyeSlash icons
Thanks again, also I edit the description of the PR. I don't know why was giving me 207 files changed for the formatting and right now, anyone. Now I removed the previous text and only I left the important. |
I updated my description of this PR after a lot of research. |
FYI: I don't currently use this component |
IMHO the current behaviour is correct. A button always should indicate what the status (in this case the visibility) WILL BE after clicking, or what its going to do, not what its current status is. |
This one is a design choice I've asked our designer, and he said it depends on the company. In our choice, it refers to the state to be shown next when it is clicked. |
Fix #15826
You can read all my research @cetincakiroglu and decide what is the best option to follow because now I don't know what is the correct way.
This topic is a little bit confused, because:
If you see Facebook you can see the solution like this PR:
If you check Angular Material Docs too:
But If you check Material UI Core, the opposite:
And if youread the opinion of ChatGPT you can see this explanation:
Problem
Solution