diff --git a/app/views/notifications/_aggregated_reactions.html.erb b/app/views/notifications/_aggregated_reactions.html.erb index 419930d9a..2352748cc 100644 --- a/app/views/notifications/_aggregated_reactions.html.erb +++ b/app/views/notifications/_aggregated_reactions.html.erb @@ -4,14 +4,14 @@
<% if actors.size == 1 %> - " class="crayons-avatar crayons-avatar--l m:crayons-avatar--xl"> + " class="crayons-avatar crayons-avatar--l m:crayons-avatar--xl" aria-hidden="true" tabindex="-1"> " class="crayons-avatar__image" alt="link to <%= actors.first["username"] %>'s profile" width="48" height="48"> <% else %> - " class="crayons-avatar crayons-avatar--l mr-4"> + " class="crayons-avatar crayons-avatar--l mr-4" aria-hidden="true" tabindex="-1"> " class="crayons-avatar__image" alt="link to <%= actors.first["username"] %>'s profile" width="48" height="48"> - " class="crayons-avatar crayons-avatar--l absolute -right-1 -bottom-3 border-solid border-2 border-base-inverted"> + " class="crayons-avatar crayons-avatar--l absolute -right-1 -bottom-3 border-solid border-2 border-base-inverted" aria-hidden="true" tabindex="-1"> " class="crayons-avatar__image" alt="link to <%= actors.last["username"] %>'s profile" width="48" height="48"> <% end %> diff --git a/app/views/notifications/_follow.html.erb b/app/views/notifications/_follow.html.erb index 145073d5b..ae39174eb 100644 --- a/app/views/notifications/_follow.html.erb +++ b/app/views/notifications/_follow.html.erb @@ -2,7 +2,7 @@ <% if notification.json_data["aggregated_siblings"].length == 1 %> <% first_notification = notification.json_data["aggregated_siblings"].first %> <% cache "activity-profile-pic-#{first_notification['id']}-#{first_notification['profile_image_90']}" do %> - " class="crayons-avatar crayons-avatar--l <% if notification.json_data["aggregated_siblings"].length == 1 %>m:crayons-avatar--xl<% end %> shrink-0"> + " class="crayons-avatar crayons-avatar--l <% if notification.json_data["aggregated_siblings"].length == 1 %>m:crayons-avatar--xl<% end %> shrink-0" tabindex="-1" aria-hidden="true"> " class="crayons-avatar__image" alt="link to <%= first_notification["username"] %>'s profile" width="48" height="48"> <% end %> @@ -18,7 +18,7 @@ <% json_data_array = notification["json_data"]["aggregated_siblings"] %>
<% notification.json_data["aggregated_siblings"][0..10].each do |sibling| %> - " class="crayons-avatar crayons-avatar--l shrink-0 mx-1"> + " class="crayons-avatar crayons-avatar--l shrink-0 mx-1" <% if sibling["id"] == json_data_array.first["id"] %> tabindex="-1" aria-hidden="true"<% end %>> " class="crayons-avatar__image" alt="link to <%= sibling["name"] %>'s profile" width="32" height="32"> <% end %> diff --git a/app/views/notifications/shared/_profile_pic.html.erb b/app/views/notifications/shared/_profile_pic.html.erb index 544960f77..8771d743b 100644 --- a/app/views/notifications/shared/_profile_pic.html.erb +++ b/app/views/notifications/shared/_profile_pic.html.erb @@ -1,10 +1,10 @@