Coder Social home page Coder Social logo

Comments (4)

JosephusPaye avatar JosephusPaye commented on June 10, 2024

Does LastPass add something to the input (like a class or attribute) you could use to adjust the icon position?

I'm hesitant to add this because other browsers (like Edge on Windows) add their own password toggle icon on the input as well.

from keen-ui.

entioentio avatar entioentio commented on June 10, 2024

I think you've misunderstood me a bit. My intention was not to add the show/hide toggle to every password icon, but to add wrapper which would take over the input's styling (bottom border). That would allow (using some per-implementation CSS trickery) to position an icon over the input. Icon next to the input works well in most cases, but isn't really the best option in the case of password input.

Thus, I thought of proposed changes more like a flexible way for sizing the input. The whole container would still be clickable, as it was inside <label>.

Does LastPass add something to the input (like a class or attribute) you could use to adjust the icon position?

No, it doesn't, and I think it doesn't do that on purpose (disable detection = maximize security).

I'm hesitant to add this because other browsers (like Edge on Windows) add their own password toggle icon on the input as well.

I got your point. However, if I am to develop my own show / hide solution, it kinda lies within my own responsibilities to disable the windows/ie ones; with this for example: https://stackoverflow.com/a/19952071/1660757

from keen-ui.

JosephusPaye avatar JosephusPaye commented on June 10, 2024

Ah, I see that you mean now. If it's just adding the wrapper you can submit a PR. Then handle the CSS changes locally in your app.

from keen-ui.

entioentio avatar entioentio commented on June 10, 2024

See PR #490

from keen-ui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.