]> git.openstreetmap.org Git - rails.git/commitdiff
Change auth provider logo alt texts to indicate that these are logos
authorAnton Khorev <tony29@yandex.ru>
Wed, 3 Jul 2024 07:40:27 +0000 (10:40 +0300)
committerAnton Khorev <tony29@yandex.ru>
Wed, 3 Jul 2024 07:53:25 +0000 (10:53 +0300)
config/locales/en.yml
test/helpers/user_helper_test.rb

index 14df2ae4fba6ac4d962f6ac7f427cd348bb46628..4c743b03353487a3db53bb9de125f29d8e596eac 100644 (file)
@@ -2588,22 +2588,22 @@ en:
       openid_login_button: "Continue"
       openid:
         title: Log in with OpenID
       openid_login_button: "Continue"
       openid:
         title: Log in with OpenID
-        alt: Log in with an OpenID URL
+        alt: OpenID logo
       google:
         title: Log in with Google
       google:
         title: Log in with Google
-        alt: Log in with a Google OpenID
+        alt: Google logo
       facebook:
         title: Log in with Facebook
       facebook:
         title: Log in with Facebook
-        alt: Log in with a Facebook Account
+        alt: Facebook logo
       microsoft:
         title: Log in with Microsoft
       microsoft:
         title: Log in with Microsoft
-        alt: Log in with a Microsoft Account
+        alt: Microsoft logo
       github:
         title: Log in with GitHub
       github:
         title: Log in with GitHub
-        alt: Log in with a GitHub Account
+        alt: GitHub logo
       wikipedia:
         title: Log in with Wikipedia
       wikipedia:
         title: Log in with Wikipedia
-        alt: Log in with a Wikipedia Account
+        alt: Wikipedia logo
   oauth:
     authorize:
       title: "Authorize access to your account"
   oauth:
     authorize:
       title: "Authorize access to your account"
index c7c63d62abebbf9ff8f83a521241f765c431ea52..09adfc14b5bab6d215238678dca6becf6a5696c0 100644 (file)
@@ -116,7 +116,7 @@ class UserHelperTest < ActionView::TestCase
 
   def test_auth_button
     button = auth_button("google", "google")
 
   def test_auth_button
     button = auth_button("google", "google")
-    img_tag = "<img alt=\"Log in with a Google OpenID\" class=\"rounded-1\" src=\"/images/google.svg\" width=\"36\" height=\"36\" />"
+    img_tag = "<img alt=\"Google logo\" class=\"rounded-1\" src=\"/images/google.svg\" width=\"36\" height=\"36\" />"
     assert_equal("<a class=\"auth_button btn btn-light mx-1 p-2 d-block\" title=\"Log in with Google\" rel=\"nofollow\" data-method=\"post\" href=\"/auth/google\">#{img_tag}</a>", button)
   end
 
     assert_equal("<a class=\"auth_button btn btn-light mx-1 p-2 d-block\" title=\"Log in with Google\" rel=\"nofollow\" data-method=\"post\" href=\"/auth/google\">#{img_tag}</a>", button)
   end