mirror of
https://github.com/suitenumerique/meet.git
synced 2026-08-12 19:56:53 +00:00
♿️(frontend) fix accessibility issue in the hint paragraph
Refactor the hint paragraph markup and semantics to resolve an accessibility issue flagged on it, so assistive technologies expose it correctly to users.
This commit is contained in:
committed by
aleb_the_flash
parent
ff7a1a4f33
commit
6c4f0632b8
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user