-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #78 from 18F/2.0-password
PW strength meter in uswds
- Loading branch information
Showing
10 changed files
with
988 additions
and
2,306 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,41 @@ | ||
--- | ||
title: Password strength meters | ||
--- | ||
|
||
The password strength indicator should be used when users are trying to create a password. | ||
|
||
## Password component example | ||
{% capture example %} | ||
|
||
<div class="grid-row"> | ||
<div class="grid-col"> | ||
<label for="password_form_password" class="usa-label">Password</label> | ||
<input id="password_form_password" type="text" class="usa-input--lg-password" required="required" | ||
type="password"> | ||
</div> | ||
</div> | ||
<div class="grid-row"> | ||
<div aria-atomic="true" aria-live="polite" class="lg-password-strength--na" id="lg-password-strength--container"> | ||
<div class="lg-password--bar grid-col"></div> | ||
<div class="lg-password--bar grid-col"></div> | ||
<div class="lg-password--bar grid-col"></div> | ||
<div class="lg-password--bar grid-col"></div> | ||
</div> | ||
</div> | ||
<div class="grid-row"> | ||
<div class="grid-col lg-password--guidance"> | ||
<span>Password strength: </span> | ||
<span class="bold" data-forbidden-passwords="["[email protected]", "owq58917", "cndps", "com", "login.gov"]" id="pw-strength-txt" class="lg-password--summary"> | ||
... | ||
</span> | ||
<div id="feedback" class="lg-password--explanation"> </div> | ||
</div> | ||
</div> | ||
<div class="grid-row"> | ||
<div class="grid-col"> | ||
<input type="submit" name="commit" value="Continue" class="usa-button" data-disable-with="Continue" disabled> | ||
</div> | ||
</div> | ||
|
||
{% endcapture %} | ||
{% include helpers/code-example.html code=example %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
--- | ||
title: Email | ||
--- | ||
|
||
{% include helpers/page-preview.html | ||
path="/examples/email-template.html" | ||
%} |
Oops, something went wrong.