Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(accessibility) improve notification action button accessibility (#16306)

Mihaela Dumitru71f92f6e177c
diff --git a/react/features/notifications/components/web/Notification.tsx b/react/features/notifications/components/web/Notification.tsx
index 2a816f7800..13b9bca3f7 100644
--- a/react/features/notifications/components/web/Notification.tsx
+++ b/react/features/notifications/components/web/Notification.tsx
@@ -162,6 +162,11 @@ const useStyles = makeStyles()((theme: Theme) => {
'&.destructive': {
color: theme.palette.textError
+ },
+
+ '&:focus-visible': {
+ outline: `2px solid ${theme.palette.action01}`,
+ outlineOffset: 2
}
},
@@ -332,10 +337,12 @@ const Notification = ({
<div className = { classes.actionsContainer }>
{mapAppearanceToButtons().map(({ content, onClick, type, testId }) => (
<button
+ aria-label = { content }
className = { cx(classes.action, type) }
data-testid = { testId }
key = { content }
- onClick = { onClick }>
+ onClick = { onClick }
+ type = 'button'>
{content}
</button>
))}