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

Removing inline CSS from the strength-meter and adding support to configurable CSS classes #673

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rodrigovallades
Copy link

@rodrigovallades rodrigovallades commented Feb 5, 2018

As requested in #434 , this removes the inline css from the 'strength-meter' element and places the styling into the CSS file.

The class names can also be configured via displayPasswordStrength(optionalConfig).

Example:

onModulesLoaded : function() {
  var optionalConfig = {
    text_strength0: 'Wow... weak password',
    text_strength1: 'Hmmm... still weak password',
    text_strength2: 'Getting better',
    text_strength3: 'Perfect!',
    cssClass_strength0: 'strength-weak',
    cssClass_strength1: 'strength-poor',
    cssClass_strength2: 'strength-ok',
    cssClass_strength3: 'strength-awesome'
  };
  $('input[type="password"]').displayPasswordStrength(optionalConfig);
}

@Amedeo91
Copy link

Feel free to raise your PR here: https://github.com/Amedeo91/jQuery-Form-Validator

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.

2 participants