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

Refactored: works for multiple password inputs, fixes regarding autofill… #48

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

slackero
Copy link

@slackero slackero commented Nov 6, 2021

  • Works with multiple input[type=password].
  • The aria-label of the toggle button can be customized adding data-show and data-hide attributes to the password input.
  • The toggle button is added by JavaScript — remove existing <button> tags when upgrading.
  • The toggle button is always visible.
  • Fixes the problem that the toggle icon can be hidden when autofill is active.
  • Added aria-pressed attribute to the toggle button.
  • Added jQuery compatible script.
  • Updated, added demos.

- Works with multiple `input[type=password]`.
- The `aria-label` of the toggle button can be customized adding `data-show` and `data-hide` attributes to the password input.
- The toggle button is added by JavaScript, remove existing `<button>` tags.
- The toggle button works more stable.
- The toggle button is always visible.
Put the background icon to the button instead the password input to avoid hidden icon with autofill.
accesslint[bot]

This comment was marked as off-topic.

accesslint[bot]

This comment was marked as outdated.

accesslint[bot]

This comment was marked as outdated.

accesslint[bot]

This comment was marked as outdated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant