Skip to content

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

React Native accessibility fixes (#5825)

Marco Zehee32f367b0c7b
diff --git a/react/features/base/dialog/components/native/BottomSheet.js b/react/features/base/dialog/components/native/BottomSheet.js
index bdd2f29a13..0f747d1fb4 100644
--- a/react/features/base/dialog/components/native/BottomSheet.js
+++ b/react/features/base/dialog/components/native/BottomSheet.js
@@ -84,6 +84,8 @@ class BottomSheet extends PureComponent<Props> {
return (
<SlidingView
+ accessibilityRole = 'menu'
+ accessibilityViewIsModal = { true }
onHide = { this.props.onCancel }
position = 'bottom'
show = { true }>
diff --git a/react/features/base/toolbox/components/ToolboxItem.native.js b/react/features/base/toolbox/components/ToolboxItem.native.js
index 9bc7c6c491..819ddf82a0 100644
--- a/react/features/base/toolbox/components/ToolboxItem.native.js
+++ b/react/features/base/toolbox/components/ToolboxItem.native.js
@@ -41,7 +41,8 @@ export default class ToolboxItem extends AbstractToolboxItem<Props> {
elementAfter,
onClick,
showLabel,
- styles
+ styles,
+ toggled
} = this.props;
let children = this._renderIcon();
@@ -72,6 +73,8 @@ export default class ToolboxItem extends AbstractToolboxItem<Props> {
return (
<TouchableHighlight
accessibilityLabel = { this.accessibilityLabel }
+ accessibilityRole = 'button'
+ accessibilityState = {{ 'selected': toggled }}
disabled = { disabled }
onPress = { onClick }
style = { style }
diff --git a/react/features/toolbox/components/native/Toolbox.js b/react/features/toolbox/components/native/Toolbox.js
index f808ef24e5..13e5bebca3 100644
--- a/react/features/toolbox/components/native/Toolbox.js
+++ b/react/features/toolbox/components/native/Toolbox.js
@@ -110,6 +110,7 @@ class Toolbox extends PureComponent<Props> {
return (
<View
+ accessibilityRole = 'toolbar'
pointerEvents = 'box-none'
style = { styles.toolbar }>
{