]> git.openstreetmap.org Git - rails.git/commitdiff
Remove alt text of OpenID logo inside input label
authorAnton Khorev <tony29@yandex.ru>
Wed, 10 Jul 2024 10:18:32 +0000 (13:18 +0300)
committerAnton Khorev <tony29@yandex.ru>
Wed, 10 Jul 2024 10:50:39 +0000 (13:50 +0300)
This keeps the input focusing when the logo is clicked but the alt text is not read by screen readers.

app/views/application/_auth_providers.html.erb
config/locales/en.yml

index 4b487cc5d5b8f9680791a87ed4602e254525568a..1455a46c54609b8ad1126e1ca9e128b06bddd274 100644 (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") %>
index 2eaee052e2792d30d58a02af64057bbb53b4003f..c5978b5d74fa644d5ea1a59e021ecd652210298b 100644 (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: