Forms Specialist reference: Password Fields
In the kit: .github/skills/forms-specialist/references/password-fields.md.
-
This file as plain text, at
https://letitglow.app/ahg/kit/raw/.github/skills/forms-specialist/references/password-fields.md - Everything in the kit
Copy it into ChatGPT or another assistant
Read the plain text first
Forms Specialist reference: Password Fields
Part of the forms-specialist skill. Read this only when the task reaches these sections.
Password Fields
<label for="password">Password</label>
<div class="password-wrapper">
<input id="password" type="password" autocomplete="new-password" aria-describedby="password-requirements">
<button type="button" aria-label="Show password" aria-pressed="false" onclick="togglePassword()">
<svg aria-hidden="true"><!-- eye icon --></svg>
</button>
</div>
<p id="password-requirements">At least 8 characters, one uppercase, one number.</p>Requirements:
- Show/hide toggle is a
<button> - Pick one way to convey state, not both. Either keep the label fixed ("Show password") and toggle
aria-pressedbetweenfalseandtrue, or change the label between "Show password" and "Hide password" and omitaria-pressed. The APG Button pattern says a toggle's label must not change when its state changes - Never disable paste in password fields
- Requirements text linked via
aria-describedby