Add an ARIA label to site customization images fields
This way it'll be easier for people using screen readers to know which field they're on.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<%= form_for([:admin, image], html: { id: "edit_#{dom_id(image)}" }) do |f| %>
|
||||
<div>
|
||||
<%= image_tag image.image if image.persisted_attachment? %>
|
||||
<%= f.file_field :image, label: false %>
|
||||
<%= f.file_field :image, label: false, "aria-label": image.name %>
|
||||
</div>
|
||||
|
||||
<%= f.submit(t("admin.site_customization.images.index.update"), class: "button hollow") %>
|
||||
|
||||
Reference in New Issue
Block a user