add a11y hints to buttons
This commit is contained in:
@@ -298,7 +298,7 @@ export class PostsFeedModel {
|
||||
this.isBlocking = error instanceof GetAuthorFeed.BlockedActorError
|
||||
this.isBlockedBy = error instanceof GetAuthorFeed.BlockedByActorError
|
||||
this.error = cleanError(error)
|
||||
this.loadMoreError = cleanError(loadMoreError) // TODO
|
||||
this.loadMoreError = cleanError(loadMoreError)
|
||||
this.cleanError = this.error ? this._cleanError(this.error) : undefined
|
||||
if (error) {
|
||||
this.rootStore.log.error('Posts feed request failed', error)
|
||||
|
||||
@@ -250,7 +250,11 @@ function ErrorMessage({
|
||||
<Text style={{paddingRight: 18}}>
|
||||
{feed.cleanError?.message || feed.error}
|
||||
</Text>
|
||||
<Button type="default-light" onPress={onPress}>
|
||||
<Button
|
||||
type="default-light"
|
||||
onPress={onPress}
|
||||
accessibilityLabel="Retry"
|
||||
accessibilityHint="Retries the last action, which errored out">
|
||||
Try again
|
||||
</Button>
|
||||
</View>
|
||||
@@ -353,7 +357,11 @@ function FeedInnerHeader({
|
||||
<Text style={{width: '100%'}}>{error.message}</Text>
|
||||
|
||||
{error.type === 'upstream' ? (
|
||||
<Button type="default-light" style={{marginTop: 12}}>
|
||||
<Button
|
||||
type="default-light"
|
||||
style={{marginTop: 12}}
|
||||
accessibilityLabel="Remove from my feeds"
|
||||
accessibilityHint="Un-pin and remove this feed from your home screen feeds.">
|
||||
Remove from my feeds
|
||||
</Button>
|
||||
) : null}
|
||||
|
||||
Reference in New Issue
Block a user