Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 25e390c

Browse files
committedNov 12, 2024·
Add comment
1 parent 5dae06a commit 25e390c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎packages/components/Link/src/Link.tsx

+3
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ export const Link = compose<LinkType>({
4343
// This is a workaround for the issue. Once those issues are resolved, supportsA11yTextInText can be removed.
4444
const supportsA11yTextInText = Platform.OS !== 'android';
4545

46+
// MacOS Text component doesn't handle interaction events like hover etc.
47+
// which are needed to style links correctly. Since macOS can handle
48+
// Views in Text, we use that to handle interactions instead.
4649
const supportsInteractionOnText = Platform.OS !== 'macos';
4750

4851
return supportsA11yTextInText && supportsInteractionOnText && (inline || mergedProps.selectable) ? (

0 commit comments

Comments
 (0)
Please sign in to comment.