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:
parent
88b95df200
commit
b7697f08d6
10 changed files with 52 additions and 32 deletions
|
@ -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>
|
||||
)
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue