add accessibilityLabel
This commit is contained in:
parent
45cf5778cb
commit
049556c07d
|
@ -1,12 +1,12 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { StyleSheet, Text } from 'react-native';
|
import { ButtonProps, StyleSheet, Text } from 'react-native';
|
||||||
import Touchable from 'react-native-platform-touchable';
|
import Touchable from 'react-native-platform-touchable';
|
||||||
|
|
||||||
import { themes } from '../../lib/constants';
|
import { themes } from '../../lib/constants';
|
||||||
import sharedStyles from '../../views/Styles';
|
import sharedStyles from '../../views/Styles';
|
||||||
import ActivityIndicator from '../ActivityIndicator';
|
import ActivityIndicator from '../ActivityIndicator';
|
||||||
|
|
||||||
interface IButtonProps {
|
interface IButtonProps extends ButtonProps {
|
||||||
title: string;
|
title: string;
|
||||||
type: string;
|
type: string;
|
||||||
onPress(): void;
|
onPress(): void;
|
||||||
|
|
|
@ -64,6 +64,7 @@ const ServerInput = ({
|
||||||
theme={theme}
|
theme={theme}
|
||||||
onFocus={() => setFocused(true)}
|
onFocus={() => setFocused(true)}
|
||||||
onBlur={() => setFocused(false)}
|
onBlur={() => setFocused(false)}
|
||||||
|
accessibilityLabel='enter-workspace-url'
|
||||||
/>
|
/>
|
||||||
{focused && serversHistory?.length ? (
|
{focused && serversHistory?.length ? (
|
||||||
<View
|
<View
|
||||||
|
|
|
@ -376,6 +376,7 @@ class NewServerView extends React.Component<INewServerViewProps, INewServerViewS
|
||||||
style={[styles.connectButton, { marginTop: verticalScale({ size: 16, height }) }]}
|
style={[styles.connectButton, { marginTop: verticalScale({ size: 16, height }) }]}
|
||||||
theme={theme}
|
theme={theme}
|
||||||
testID='new-server-view-button'
|
testID='new-server-view-button'
|
||||||
|
accessibilityLabel='new-server-view-button'
|
||||||
/>
|
/>
|
||||||
<OrSeparator theme={theme} />
|
<OrSeparator theme={theme} />
|
||||||
<Text
|
<Text
|
||||||
|
|
Loading…
Reference in New Issue