Skip to content

Commit a623f2b

Browse files
committed
Fix: a11y
1 parent c9aaea1 commit a623f2b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

site/src/pages/LoginPage/LoginPageView.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { AuthContext, UnauthenticatedData } from "xServices/auth/authXService";
66
import { SignInForm } from "./SignInForm";
77
import { retrieveRedirect } from "utils/redirect";
88
import { CoderIcon } from "components/Icons/CoderIcon";
9-
import { getLogoURL } from "utils/appearance";
9+
import { getApplicationName, getLogoURL } from "utils/appearance";
1010

1111
export interface LoginPageViewProps {
1212
context: AuthContext;
@@ -29,11 +29,12 @@ export const LoginPageView: FC<LoginPageViewProps> = ({
2929
// This allows messages to be displayed at the top of the sign in form.
3030
// Helpful for any redirects that want to inform the user of something.
3131
const info = new URLSearchParams(location.search).get("info") || undefined;
32+
const applicationName = getApplicationName();
3233
const logoURL = getLogoURL();
3334
const applicationLogo = logoURL ? (
3435
<div>
3536
<img
36-
alt=""
37+
alt={applicationName}
3738
src={logoURL}
3839
// This prevent browser to display the ugly error icon if the
3940
// image path is wrong or user didn't finish typing the url

0 commit comments

Comments
 (0)