Skip to content

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

feat(settings): better keyboard navigation

Joshua Irmerb640324fbcd4
diff --git a/react/features/base/ui/components/web/DialogWithTabs.tsx b/react/features/base/ui/components/web/DialogWithTabs.tsx
index 708b45c17c..36258b9c1c 100644
--- a/react/features/base/ui/components/web/DialogWithTabs.tsx
+++ b/react/features/base/ui/components/web/DialogWithTabs.tsx
@@ -319,9 +319,11 @@ const DialogWithTabs = ({
titleKey = { titleKey }>
{(!isMobile || !selectedTab) && (
<div
+ aria-label = { titleKey ? t(titleKey) : undefined }
aria-orientation = 'vertical'
className = { classes.sidebar }
- role = { isMobile ? undefined : 'tablist' }>
+ role = { isMobile ? undefined : 'tablist' }
+ tabIndex = { 0 }>
<div className = { classes.titleContainer }>
<h1
className = { classes.title }
@@ -383,8 +385,7 @@ const DialogWithTabs = ({
className = { cx(classes.content, tab.name !== selectedTab && 'hide') }
id = { `dialogtab-content-${tab.name}` }
key = { tab.name }
- role = { isMobile ? undefined : 'tabpanel' }
- tabIndex = { isMobile ? -1 : 0 }>
+ role = { isMobile ? undefined : 'tabpanel' }>
{ tab.name === selectedTab && selectedTabComponent }
</div>
))}