Include aria-required attribute on required fields.

[Closes #780]
This commit is contained in:
Cameron Cundiff 2013-04-07 14:03:31 -04:00
parent 9cd202bc4f
commit c142a73e22
1 changed files with 1 additions and 0 deletions

View File

@ -66,6 +66,7 @@ module SimpleForm
@input_html_classes = @html_classes.dup
@input_html_options = html_options_for(:input, input_html_classes).tap do |o|
o['aria-required'] = true if has_required?
o[:readonly] = true if has_readonly?
o[:disabled] = true if has_disabled?
o[:autofocus] = true if has_autofocus?