-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
improve accessibility of sign-up modal #7966
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 |
---|---|---|
|
@@ -21,7 +21,7 @@ | |
<div class="row"> | ||
<div class="col-md-6"> | ||
<div class="form-group" id="username_div"> | ||
<label for="username"><%= translation('user_sessions.new.username') %></label> | ||
<label for="username-signup"><%= translation('user_sessions.new.username') %></label> | ||
<%= f.text_field :username, { tabindex: 1, placeholder: "Username", class: 'form-control', id: 'username-signup' } %> | ||
<small class="invisible">Placeholder</small> | ||
</div> | ||
|
@@ -35,9 +35,10 @@ | |
|
||
<div class="col-md-6" style="display:flex; justify-content: center;"> | ||
<div class="propic"> | ||
<img class="something_something rounded" src="https://www.gravatar.com/avatar/1aedb8d9dc4751e229a335e371db8058" style="width: 120px; height: 115px; margin-top: 10px; margin-bottom: 25px; margin-left: 55px; background:#ccc;" onerror="this.src='https://www.gravatar.com/avatar/1aedb8d9dc4751e229a335e371db8058'"> | ||
<img class="something_something rounded" alt="Profile Photo" src="https://www.gravatar.com/avatar/1aedb8d9dc4751e229a335e371db8058" style="width: 120px; height: 115px; margin-top: 10px; margin-bottom: 25px; margin-left: 55px; background:#ccc;" onerror="this.src='https://www.gravatar.com/avatar/1aedb8d9dc4751e229a335e371db8058'"> | ||
<div class="form-group"> | ||
<span class="btn btn-outline-primary btn-file"> | ||
<label id="selectProfilePhoto" for="something_else_unique"> | ||
<u style="cursor: pointer;">Choose image</u> or drag one here | ||
<%= f.file_field :photo, id:"something_else_unique", onchange:'showFile(this, "something_something");', accept: "image/*", style: 'draggable: true' %> | ||
</span> | ||
|
@@ -48,7 +49,7 @@ | |
|
||
<div class="form-group row"> | ||
<div class="form-group col-md-6"> | ||
<label for="password"><%= translation('users._form.create_password') %></label> | ||
<label for="password1"><%= translation('users._form.create_password') %></label> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same question about client-side validation! |
||
<%= f.password_field :password, { placeholder: 'Enter your new password', | ||
tabindex: 4, | ||
class: 'form-control', | ||
|
@@ -59,7 +60,7 @@ | |
</div> | ||
|
||
<div class="form-group col-md-6"> | ||
<label for="password_confirmation"><%= translation('users._form.password_confirmation') %></label> | ||
<label for="password-confirmation"><%= translation('users._form.password_confirmation') %></label> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. and here! |
||
<%= f.password_field :password_confirmation, { placeholder: I18n.t('users._form.confirm_password'), | ||
tabindex: 5, | ||
class: 'form-control', | ||
|
@@ -72,10 +73,11 @@ | |
|
||
<div class="form-group row"> | ||
<div class="col-md-12"> | ||
<label for="user_bio"><%= translation('users._form.bio') %></label> | ||
<label for="user-bio"><%= translation('users._form.bio') %></label> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. sorry, one more! |
||
<%= f.text_area :bio, { placeholder: I18n.t('users._form.add_bio'), | ||
rows: 8, | ||
class: 'form-control', | ||
id: 'user-bio', | ||
tabindex: 6 } | ||
%> | ||
</div> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,9 +2,7 @@ | |
|
||
<div class="form-group spamaway"> | ||
|
||
<label for="spamaway_follow_instructions"> | ||
<%= translation('users._form.are_you_human') %> | ||
</label> | ||
<p style="font-size: 1.3em;"> | ||
<%= translation('users._form.spam_filtering') %> | ||
</p> | ||
|
@@ -16,6 +14,7 @@ | |
<div class="btn-group d-flex" role="group"> | ||
<% [0,1].each_with_index do |s, j| %><% statement = turingtest[i][s] %> | ||
<button type="button" class="col-5 btn btn-outline-secondary" style="font-size:3em;text-align:left;<% if i.odd? %> background:#eef;<% end %>" id="spamaway-<%= caller %>-<%= i.to_s + j.to_s %>"> | ||
<label id="selectAnimal" for="spamaway_statement_<%= caller %>_<%= i.to_s + j.to_s %>"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🐯 🐘 🐻 😻 |
||
<%= spam.radio_button vars[i], statement, { id: "spamaway_statement_#{caller}_#{i.to_s}#{j.to_s}" } %> <%= statement %> | ||
</button> | ||
<% end %> | ||
|
@@ -27,7 +26,6 @@ | |
</div> | ||
|
||
<div class="form-group d-none"> | ||
|
||
<%= spam.text_area :follow_instructions, { class: "form-control col-lg-6", | ||
rows: 8, | ||
tabindex: 7, | ||
|
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.
Just checking if this has affected our client-side validation at all? I would guess not but good to note this so people feel secure about it. Thank you!!!