Remove alt text of OpenID logo inside input label

This keeps the input focusing when the logo is clicked but the alt text is not read by screen readers.
This commit is contained in:
Anton Khorev 2024-07-10 13:18:32 +03:00
parent 38bfb33c02
commit 9a9cf59adc
2 changed files with 1 additions and 2 deletions

View file

@ -47,7 +47,7 @@
<%= form_tag(auth_path(:provider => "openid"), :id => "openid_login_form") do %>
<div id="login_openid_url" class="mb-3">
<label for="openid_url" class="form-label">
<%= image_tag "openid.svg", :size => "36", :alt => t(".openid_logo_alt"), :class => "align-text-bottom" %>
<%= image_tag "openid.svg", :size => "36", :alt => "", :class => "align-text-bottom" %>
<%= t ".openid_url" %>
</label>
<%= hidden_field_tag("referer", params[:referer], :autocomplete => "off") %>

View file

@ -2583,7 +2583,6 @@ en:
oauth2_authorizations: OAuth 2 authorizations
muted_users: Muted Users
auth_providers:
openid_logo_alt: "Log in with an OpenID"
openid_url: "OpenID URL"
openid_login_button: "Continue"
openid: