Merge pull request #7430 from betagouv/fix-datetime-label

Usager : correction de l'affichage du sélecteur de date et heure
This commit is contained in:
Pierre de La Morinerie 2022-05-31 15:45:20 +02:00 committed by GitHub
commit 8c3356b620
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,7 +25,7 @@ module ActionView
end
field_for = "#{prefix.join('_')}_#{@options[:field_name]}"
"<label class='screen-reader-text' for='#{field_for}_#{n}i'>#{label}</label>"
"<label class='sr-only' for='#{field_for}_#{n}i'>#{label}</label>"
end
# Returns the separator for a given datetime component.