mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-16 13:27:51 +00:00
feat: add more accessibility labels
Adds more accessibility labels required for mobile automated testing.
This commit is contained in:
@@ -38,6 +38,8 @@ class ToolbarButton extends AbstractToolbarButton {
|
||||
_renderButton(children) {
|
||||
const props = {};
|
||||
|
||||
'accessibilityLabel' in this.props
|
||||
&& (props.accessibilityLabel = this.props.accessibilityLabel);
|
||||
'disabled' in this.props && (props.disabled = this.props.disabled);
|
||||
'onClick' in this.props && (props.onPress = this._onClick);
|
||||
'style' in this.props && (props.style = this.props.style);
|
||||
|
||||
@@ -243,6 +243,7 @@ class Toolbox extends Component {
|
||||
onClick = { this._onToggleAudio }
|
||||
style = { audioButtonStyles.style } />
|
||||
<ToolbarButton
|
||||
accessibilityLabel = 'Hangup'
|
||||
iconName = 'hangup'
|
||||
iconStyle = { styles.whitePrimaryToolbarButtonIcon }
|
||||
onClick = { this.props._onHangup }
|
||||
|
||||
Reference in New Issue
Block a user