fix: update accessibility labels in LoginForm component for better screen reader support
This commit is contained in:
@@ -186,15 +186,15 @@ export function LoginForm({
|
|||||||
: "/api/auth/wxwork_qr_login"
|
: "/api/auth/wxwork_qr_login"
|
||||||
window.location.href = `${path}?next=${encodeURIComponent(redirectPath)}`
|
window.location.href = `${path}?next=${encodeURIComponent(redirectPath)}`
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Image
|
<Image
|
||||||
src="/images/wxwork.svg"
|
src="/images/wxwork.svg"
|
||||||
alt=""
|
alt=""
|
||||||
width={16}
|
width={16}
|
||||||
height={16}
|
height={16}
|
||||||
className="size-4 shrink-0"
|
className="size-4 shrink-0"
|
||||||
/>
|
/>
|
||||||
<span className="sr-only">{t("auth.wxworkSignIn")}</span>
|
<span>{t("auth.wxworkSignIn")}</span>
|
||||||
</Button>
|
</Button>
|
||||||
) : null}
|
) : null}
|
||||||
{authOptions.oidcEnabled ? (
|
{authOptions.oidcEnabled ? (
|
||||||
@@ -207,7 +207,7 @@ export function LoginForm({
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<KeyRoundIcon className="size-4 shrink-0" />
|
<KeyRoundIcon className="size-4 shrink-0" />
|
||||||
<span className="sr-only">{t("auth.oidcSignIn")}</span>
|
<span>{t("auth.oidcSignIn")}</span>
|
||||||
</Button>
|
</Button>
|
||||||
) : null}
|
) : null}
|
||||||
</Field>
|
</Field>
|
||||||
|
|||||||
Reference in New Issue
Block a user