Skip to content

Commit

Permalink
Compatibility fixes for mobile app e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
oddballdave committed Feb 14, 2025
1 parent 837e3db commit 5e7a344
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions packages/components/src/components/Alert/Alert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,7 @@ export const Alert: FC<AlertProps> = ({
const a11yLabel = headerA11yLabel || header

const headerText = (
<Text
variant="heading"
size="sm"
bottomSpacing="none"
a11yLabel={a11yLabel}>
<Text variant="heading" size="sm" bottomSpacing="none">
{header}
</Text>
)
Expand All @@ -187,6 +183,7 @@ export const Alert: FC<AlertProps> = ({
onPress={toggleExpand}
role="tab"
aria-expanded={expanded}
aria-label={a11yLabel}
hitSlop={hitSlop}
style={{ flexDirection: 'row' }}>
<View style={{ flex: 1 }}>{headerText}</View>
Expand All @@ -195,7 +192,11 @@ export const Alert: FC<AlertProps> = ({
)
}

return headerText
return (
<View accessible={true} aria-label={a11yLabel}>
{headerText}
</View>
)
}

const _primaryButton = () => {
Expand Down

0 comments on commit 5e7a344

Please sign in to comment.