Fix #136: Add aria-labels
This commit is contained in:
parent
1828df9bc0
commit
159203a7bc
7 changed files with 15 additions and 15 deletions
|
@ -5,8 +5,8 @@
|
|||
= render 'shared/error_messages', object: resource
|
||||
= f.input :reset_password_token, as: :hidden
|
||||
|
||||
= f.input :password, autofocus: true, autocomplete: "off", placeholder: 'New password'
|
||||
= f.input :password_confirmation, autocomplete: "off", placeholder: 'Confirm new password'
|
||||
= f.input :password, autofocus: true, autocomplete: "off", placeholder: 'New password', input_html: { 'aria-label' => 'New password' }
|
||||
= f.input :password_confirmation, autocomplete: "off", placeholder: 'Confirm new password', input_html: { 'aria-label' => 'Confirm new password' }
|
||||
|
||||
.actions
|
||||
= f.button :button, "Change my password", type: :submit
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
= simple_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f|
|
||||
= render 'shared/error_messages', object: resource
|
||||
|
||||
= f.input :email, autofocus: true, required: true, placeholder: 'E-mail address'
|
||||
= f.input :email, autofocus: true, required: true, placeholder: 'E-mail address', input_html: { 'aria-label' => 'E-mail address' }
|
||||
|
||||
.actions
|
||||
= f.button :button, "Reset password", type: :submit
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue