Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion NewArch/src/components/Badge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ export function Badge(props: {
return (
<View
style={[styles.badgeContainer, {backgroundColor: props.badgeColor}]}
tooltip={props.description}>
tooltip={props.description}
tooltipProperties={{MaxWidth: 500}}>
<Text style={[styles.badgeText, {color: props.textColor}]}>
{props.badgeTitle}
</Text>
Expand Down
1 change: 1 addition & 0 deletions NewArch/src/components/Controls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ function Hyperlink({url, text}: HyperlinkProps): JSX.Element {
return (
<Pressable
tooltip={url}
tooltipProperties={{MaxWidth: 500}}
accessibilityRole="link"
accessibilityLabel={displayText}
onPress={() => Linking.openURL(url)}
Expand Down
1 change: 1 addition & 0 deletions NewArch/src/components/CopyToClipboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ const CopyToClipboardButton = React.forwardRef<any, CopyToClipboardButtonProps>(
accessibilityRole="button"
accessibilityLabel={helpText}
tooltip={helpText}
tooltipProperties={{MaxWidth: 500}}
style={styles.background}
onPress={() => {
Clipboard.setString(content);
Expand Down
1 change: 1 addition & 0 deletions NewArch/src/components/PageScroller.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const PagingButton = ({left, onPress}: PagingButtonProps) => {
accessibilityRole="button"
accessibilityLabel={tooltip}
tooltip={tooltip}
tooltipProperties={{MaxWidth: 500}}
onPress={() => onPress()}
onHoverIn={() => setHover(true)}
onHoverOut={() => setHover(false)}
Expand Down
1 change: 1 addition & 0 deletions NewArch/src/components/ScreenWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export function ScreenWrapper({
accessibilityRole="button"
accessibilityLabel="Navigation menu"
tooltip={'Expand navigation menu'}
tooltipProperties={{MaxWidth: 500}}
// requires react-native-gesture-handler to be imported in order to pass testing.
// blocked by #125
//accessibilityState={{expanded: useIsDrawerOpen()}}
Expand Down