Change auth provider logo alt texts to indicate that these are logos

This commit is contained in:
Anton Khorev 2024-07-03 10:40:27 +03:00
parent f9db802c7b
commit 81ac29fad8
2 changed files with 7 additions and 7 deletions

View file

@ -2588,22 +2588,22 @@ en:
openid_login_button: "Continue" openid_login_button: "Continue"
openid: openid:
title: Log in with OpenID title: Log in with OpenID
alt: Log in with an OpenID URL alt: OpenID logo
google: google:
title: Log in with Google title: Log in with Google
alt: Log in with a Google OpenID alt: Google logo
facebook: facebook:
title: Log in with Facebook title: Log in with Facebook
alt: Log in with a Facebook Account alt: Facebook logo
microsoft: microsoft:
title: Log in with Microsoft title: Log in with Microsoft
alt: Log in with a Microsoft Account alt: Microsoft logo
github: github:
title: Log in with GitHub title: Log in with GitHub
alt: Log in with a GitHub Account alt: GitHub logo
wikipedia: wikipedia:
title: Log in with Wikipedia title: Log in with Wikipedia
alt: Log in with a Wikipedia Account alt: Wikipedia logo
oauth: oauth:
authorize: authorize:
title: "Authorize access to your account" title: "Authorize access to your account"

View file

@ -116,7 +116,7 @@ class UserHelperTest < ActionView::TestCase
def test_auth_button def test_auth_button
button = auth_button("google", "google") 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) 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 end