Skip to content

Commit f728741

Browse files
authored
Removed the link role from the index table (#2844)
Each row of the collection table had a `role=link` attribute, which was removing the default "row" role. This caused screen readers to ignore all of the table's rows. Removing the attribute resolves this issue.
1 parent 94d8ab0 commit f728741

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/administrate/application/_collection.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ to display a collection of resources in an HTML table.
6969
<% resources.each do |resource| %>
7070
<tr class="js-table-row"
7171
<% if accessible_action?(resource, :show) %>
72-
<%= %(tabindex=0 role=link data-url=#{polymorphic_path([namespace, resource])}) %>
72+
<%= %(tabindex=0 data-url=#{polymorphic_path([namespace, resource])}) %>
7373
<% end %>
7474
>
7575
<% collection_presenter.attributes_for(resource).each do |attribute| %>

0 commit comments

Comments
 (0)