Skip to content

armgit / meet

Public Imported from GitHub
0

Open source video conferencing app powered by LiveKit. Built with Django and React.

♿️(frontend) fix accessibility issue in the hint paragraph

lebaudantoine6c4f0632b8d3
diff --git a/src/frontend/src/features/rooms/components/Join.tsx b/src/frontend/src/features/rooms/components/Join.tsx
index 1c943367..caaffd39 100644
--- a/src/frontend/src/features/rooms/components/Join.tsx
+++ b/src/frontend/src/features/rooms/components/Join.tsx
@@ -339,6 +339,8 @@ const VideoPreview = ({
videoStarted,
})
+ const isError = cameraMissing || cameraDenied
+
return (
<div className={styles.previewFrame}>
<div className={styles.gradientTop} />
@@ -367,8 +369,13 @@ const VideoPreview = ({
/>
</div>
</div>
- <div role="alert" className={styles.hintOverlay}>
- <p className={styles.hintText}>{hint && t(hint)}</p>
+ <div className={styles.hintOverlay}>
+ <p role="alert" className={styles.hintText}>
+ {isError && hint ? t(hint) : null}
+ </p>
+ <p role="status" className={styles.hintText}>
+ {!isError && hint ? t(hint) : null}
+ </p>
{permissionsButtonLabel && (
<Button
size="sm"