Skip to content

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