-
Notifications
You must be signed in to change notification settings - Fork 13
fix: align password minlength in UI with backend validation #33
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -73,8 +73,8 @@ <h2 class="text-xl font-bold text-slate-800 mb-6">Create your account</h2> | |
| </div> | ||
| <div> | ||
| <label class="block text-sm font-medium text-slate-700 mb-1">Password</label> | ||
| <input id="r-password" type="password" autocomplete="new-password" required minlength="6" | ||
| class="w-full px-4 py-2.5 rounded-xl border border-slate-200 focus:outline-none focus:ring-2 focus:ring-brand/40 text-sm" placeholder="min 6 characters" /> | ||
| <input id="r-password" type="password" autocomplete="new-password" required minlength="8" | ||
| class="w-full px-4 py-2.5 rounded-xl border border-slate-200 focus:outline-none focus:ring-2 focus:ring-brand/40 text-sm" placeholder="min 8 characters" /> | ||
|
Comment on lines
+76
to
+77
|
||
| </div> | ||
| <p id="register-err" class="text-red-500 text-sm hidden"></p> | ||
| <button type="submit" class="w-full bg-brand text-white font-semibold py-2.5 rounded-xl hover:bg-brand-dark transition text-sm">Create Account</button> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add
forattribute to label for proper accessibility.The label on line 75 should include a
for="r-password"attribute to explicitly associate it with the password input field. This is essential for screen readers and improves keyboard navigation.♿ Proposed fix to add label association
Note: This same issue exists for all other labels in the file (lines 38, 43, 60, 65, and 70). Consider updating them as well for comprehensive accessibility compliance.
As per coding guidelines: "Review HTML templates for accessibility (ARIA attributes, semantic elements)..."
📝 Committable suggestion
🧰 Tools
🪛 HTMLHint (1.9.2)
[warning] 76-76: No matching [ label ] tag found.
(input-requires-label)
🤖 Prompt for AI Agents