fix(17): IN-03 render visible Redirecting status during OIDC redirect
This commit is contained in:
+17
-1
@@ -78,7 +78,23 @@ function OidcRedirect() {
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
window.location.replace('/api/login');
|
window.location.replace('/api/login');
|
||||||
}, []);
|
}, []);
|
||||||
return <div aria-hidden="true" />;
|
// IN-03: render a perceivable status (not an empty aria-hidden div) so the
|
||||||
|
// transition is announced to screen-reader/keyboard users if the redirect is slow.
|
||||||
|
return (
|
||||||
|
<div
|
||||||
|
role="status"
|
||||||
|
style={{
|
||||||
|
display: 'flex',
|
||||||
|
alignItems: 'center',
|
||||||
|
justifyContent: 'center',
|
||||||
|
minHeight: '100vh',
|
||||||
|
color: 'var(--color-text-muted, #6b7280)',
|
||||||
|
fontSize: '0.95rem',
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
Redirecting to sign in…
|
||||||
|
</div>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function App() {
|
export default function App() {
|
||||||
|
|||||||
Reference in New Issue
Block a user