Skip to content

Commit b49cbaa

Browse files
committed
fix(a11y): Use empty alt tag for profile image
It's always besides text that is the actual username, making this alt text redundant.
1 parent 9ba4ec3 commit b49cbaa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/views/profiles/_image.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<% if user.profile_image.attached? %>
22
<% begin %>
3-
<%= image_tag rails_public_blob_url(user.profile_image.variant(quality: 95, resize_to_fill: [size, size]).processed), loading: "lazy", height: size, width: size, alt: user.username %>
3+
<%= image_tag rails_public_blob_url(user.profile_image.variant(quality: 95, resize_to_fill: [size, size]).processed), loading: "lazy", height: size, width: size, alt: "" %>
44
<% rescue %>
55
<% end %>
66
<% end %>

0 commit comments

Comments
 (0)