Skip to content

Commit

Permalink
Improve UX of username field on join form
Browse files Browse the repository at this point in the history
  • Loading branch information
jerodsanto committed May 3, 2023
1 parent 68c4df6 commit 09195a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/changelog_web/templates/person/join.html.eex
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@
<div class="form-element_wrap <%= PublicHelpers.error_class(f, :handle) %>">
<div class="form-element">
<label>Username / Handle<span>*</span></label>
<%= text_input(f, :handle, placeholder: "gracehopper", required: true, autocapitalize: "none") %>
<%= text_input(f, :handle, placeholder: "gracehopper", required: true, autocapitalize: "none", pattern: "^[a-z|0-9|_|-]+$") %>
<%= PublicHelpers.error_message(f, :handle) %>
<p class="form-element-note">Valid characters: a-z, 0-9, -, _</p>
</div>
</div>

Expand Down

0 comments on commit 09195a5

Please sign in to comment.