Fix #136: Add aria-labels

This commit is contained in:
Eugen Rochko
2016-11-03 19:19:39 +01:00
parent 1828df9bc0
commit 159203a7bc
7 changed files with 15 additions and 15 deletions

View File

@ -2,8 +2,8 @@
Log in
= simple_form_for(resource, as: resource_name, url: session_path(resource_name)) do |f|
= f.input :email, autofocus: true, placeholder: 'E-mail address', required: true
= f.input :password, placeholder: 'Password', required: true
= f.input :email, autofocus: true, placeholder: 'E-mail address', required: true, input_html: { 'aria-label' => 'E-mail address' }
= f.input :password, placeholder: 'Password', required: true, input_html: { 'aria-label' => 'Password' }
.actions
= f.button :button, "Log in", type: :submit