fix display of labels for datetime on screenreaders
This commit is contained in:
parent
bc34905742
commit
c0cf8b1341
3 changed files with 19 additions and 5 deletions
|
@ -25,7 +25,7 @@ module ActionView
|
|||
end
|
||||
field_for = "#{prefix.join('_')}_#{@options[:field_name]}"
|
||||
|
||||
"<span class='hidden'><label for='#{field_for}_#{n}i'>#{label}</label></span>"
|
||||
"<label class='screen-reader-text' for='#{field_for}_#{n}i'>#{label}</label>"
|
||||
end
|
||||
|
||||
# Returns the separator for a given datetime component.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue