@@ -230,19 +230,21 @@ export class FeedbackWidget extends React.Component<FeedbackWidgetProps, Feedbac
230
230
source = { { uri : sentryLogo } }
231
231
style = { styles . sentryLogo }
232
232
testID = 'sentry-logo'
233
+ accessibilityLabel = 'Sentry logo'
233
234
/>
234
235
) }
235
236
</ View >
236
237
237
238
{ config . showName && (
238
239
< >
239
- < Text style = { styles . label } testID = 'name-label' >
240
+ < Text style = { styles . label } testID = 'name-label' accessibilityLabel = { text . nameLabel } >
240
241
{ text . nameLabel }
241
242
{ config . isNameRequired && ` ${ text . isRequiredLabel } ` }
242
243
</ Text >
243
244
< TextInput
244
245
style = { styles . input }
245
246
testID = 'name-input'
247
+ accessibilityLabel = { text . namePlaceholder }
246
248
placeholder = { text . namePlaceholder }
247
249
value = { name }
248
250
onChangeText = { ( value ) => this . setState ( { name : value } ) }
@@ -252,13 +254,14 @@ export class FeedbackWidget extends React.Component<FeedbackWidgetProps, Feedbac
252
254
253
255
{ config . showEmail && (
254
256
< >
255
- < Text style = { styles . label } testID = 'email-label' >
257
+ < Text style = { styles . label } testID = 'email-label' accessibilityLabel = { text . emailLabel } >
256
258
{ text . emailLabel }
257
259
{ config . isEmailRequired && ` ${ text . isRequiredLabel } ` }
258
260
</ Text >
259
261
< TextInput
260
262
style = { styles . input }
261
263
testID = 'email-input'
264
+ accessibilityLabel = { text . emailPlaceholder }
262
265
placeholder = { text . emailPlaceholder }
263
266
keyboardType = { 'email-address' as KeyboardTypeOptions }
264
267
value = { email }
@@ -267,13 +270,14 @@ export class FeedbackWidget extends React.Component<FeedbackWidgetProps, Feedbac
267
270
</ >
268
271
) }
269
272
270
- < Text style = { styles . label } testID = 'message-label' >
273
+ < Text style = { styles . label } testID = 'message-label' accessibilityLabel = { text . messageLabel } >
271
274
{ text . messageLabel }
272
275
{ ` ${ text . isRequiredLabel } ` }
273
276
</ Text >
274
277
< TextInput
275
278
style = { [ styles . input , styles . textArea ] }
276
279
testID = 'message-input'
280
+ accessibilityLabel = { text . messagePlaceholder }
277
281
placeholder = { text . messagePlaceholder }
278
282
value = { description }
279
283
onChangeText = { ( value ) => this . setState ( { description : value } ) }
@@ -286,10 +290,13 @@ export class FeedbackWidget extends React.Component<FeedbackWidgetProps, Feedbac
286
290
source = { { uri : this . state . attachmentUri } }
287
291
style = { styles . screenshotThumbnail }
288
292
testID = 'screenshot-thumbnail'
293
+ accessibilityLabel = 'Screenshot thumbnail'
289
294
/>
290
295
) }
291
296
< TouchableOpacity style = { styles . screenshotButton } onPress = { this . onScreenshotButtonPress } >
292
- < Text style = { styles . screenshotText } testID = 'screenshot-button' >
297
+ < Text style = { styles . screenshotText } testID = 'screenshot-button' accessibilityLabel = { ! this . state . filename && ! this . state . attachment
298
+ ? text . addScreenshotButtonLabel
299
+ : text . removeScreenshotButtonLabel } >
293
300
{ ! this . state . filename && ! this . state . attachment
294
301
? text . addScreenshotButtonLabel
295
302
: text . removeScreenshotButtonLabel }
@@ -298,11 +305,11 @@ export class FeedbackWidget extends React.Component<FeedbackWidgetProps, Feedbac
298
305
</ View >
299
306
) }
300
307
< TouchableOpacity style = { styles . submitButton } onPress = { this . handleFeedbackSubmit } >
301
- < Text style = { styles . submitText } testID = 'submit-button' > { text . submitButtonLabel } </ Text >
308
+ < Text style = { styles . submitText } testID = 'submit-button' accessibilityLabel = { text . submitButtonLabel } > { text . submitButtonLabel } </ Text >
302
309
</ TouchableOpacity >
303
310
304
311
< TouchableOpacity style = { styles . cancelButton } onPress = { onCancel } >
305
- < Text style = { styles . cancelText } testID = 'cancel-button' > { text . cancelButtonLabel } </ Text >
312
+ < Text style = { styles . cancelText } testID = 'cancel-button' accessibilityLabel = { text . cancelButtonLabel } > { text . cancelButtonLabel } </ Text >
306
313
</ TouchableOpacity >
307
314
</ View >
308
315
</ TouchableWithoutFeedback >
0 commit comments