-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#173769898] fix accessibility for loadingerrorcomponent #2043
[#173769898] fix accessibility for loadingerrorcomponent #2043
Conversation
…nt' into 173769898-fix-accessibility-for-loadingerrorcomponent
…sibility-for-loadingerrorcomponent
Affected stories
Generated by 🚫 dangerJS |
useEffect( | ||
() => { | ||
if (props.isLoading) { | ||
setAccessibilityFocus(loadingRef, delay); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
setAccessibilityFocus(loadingRef, delay); | |
setAccessibilityFocus(lprops.isLoading ? loadingRef : errorRef, delay); |
same but more coincise
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed in e677b09
<View accessible={true} ref={loadingRef} style={{ flex: 1 }}> | ||
<InfoScreenComponent | ||
image={ | ||
<Spinner |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<Spinner | |
<ActivityIndicator color={themeVariables.brandPrimaryLight} /> |
you could use ActivityIndicator since it is already used in few parts (/components/ui/ActivityIndicator
)
Spinner black | ActivityIndicator |
---|---|
Furthermore we could keep the InfoScreenComponent title as non-bold text as it was previously
current on master
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LoadingSpinner changed in e677b09
The text is changed to bold in order to use this pr as an occasion to implements the graphical requirement that was never implemented https://pagopa.invisionapp.com/console/Bonus-Vacanze-ckas11mrt0cfe016bekk47kk5/ckb19iapa0036013eyble6agi/play
Just the subtext cannot be normal
for accessibility reasons.
Short description:
This pr fix and improves the accessibility for the
LoadingErrorComponent
List of changes proposed in this pull request: