Accessibility fixes: add missing labels, dynamically scale home header (#1516)

* Improve labels

* Dynanically adjust home header to account for font scaling
This commit is contained in:
Paul Frazee 2023-09-22 17:04:47 -07:00 committed by GitHub
parent 88b95df200
commit b7697f08d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 52 additions and 32 deletions

View file

@ -142,6 +142,7 @@ export const TextLink = observer(function TextLink({
dataSet,
title,
onPress,
...orgProps
}: {
testID?: string
type?: TypographyVariant
@ -190,7 +191,8 @@ export const TextLink = observer(function TextLink({
title={title}
// @ts-ignore web only -prf
hrefAttrs={hrefAttrs} // hack to get open in new tab to work on safari. without this, safari will open in a new window
{...props}>
{...props}
{...orgProps}>
{text}
</Text>
)

View file

@ -230,7 +230,11 @@ export function UserAvatar({
// onSelectNewAvatar is only passed as prop on the EditProfile component
return onSelectNewAvatar ? (
<NativeDropdown testID="changeAvatarBtn" items={dropdownItems}>
<NativeDropdown
testID="changeAvatarBtn"
items={dropdownItems}
accessibilityLabel="Image options"
accessibilityHint="">
{avatar ? (
<HighPriorityImage
testID="userAvatarImage"

View file

@ -106,7 +106,11 @@ export function UserBanner({
// setUserBanner is only passed as prop on the EditProfile component
return onSelectNewBanner ? (
<NativeDropdown testID="changeBannerBtn" items={dropdownItems}>
<NativeDropdown
testID="changeBannerBtn"
items={dropdownItems}
accessibilityLabel="Image options"
accessibilityHint="">
{banner ? (
<Image
testID="userBannerImage"