diff options
author | Jan-Olof Eriksson <jan-olof.eriksson@iki.fi> | 2024-03-04 18:11:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-04 18:11:00 +0200 |
commit | e724ab812346b4224b3efb2de0960f2cda88861b (patch) | |
tree | 9192c98b2b0b4be3388019b15b02a5d7df7fcce2 /src/components/RichText.tsx | |
parent | 963a44ab872a1044d6997a8fcf7b2fc754ac618a (diff) | |
parent | b70c404d4b369d6fab0dfbafd6b31390ffd20014 (diff) | |
download | voidsky-e724ab812346b4224b3efb2de0960f2cda88861b.tar.zst |
Merge branch 'bluesky-social:main' into main
Diffstat (limited to 'src/components/RichText.tsx')
-rw-r--r-- | src/components/RichText.tsx | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/components/RichText.tsx b/src/components/RichText.tsx index 3d5f08026..1a14415cf 100644 --- a/src/components/RichText.tsx +++ b/src/components/RichText.tsx @@ -105,8 +105,7 @@ export function RichText({ to={link.uri} style={[...styles, {pointerEvents: 'auto'}]} // @ts-ignore TODO - dataSet={WORD_WRAP} - warnOnMismatchingLabel> + dataSet={WORD_WRAP}> {toShortUrl(segment.text)} </InlineLink>, ) @@ -121,6 +120,7 @@ export function RichText({ <RichTextTag key={key} text={segment.text} + tag={tag.tag} style={styles} selectable={selectable} authorHandle={authorHandle} @@ -146,12 +146,14 @@ export function RichText({ } function RichTextTag({ - text: tag, + text, + tag, style, selectable, authorHandle, }: { text: string + tag: string selectable?: boolean authorHandle?: string } & TextStyleProp) { @@ -185,8 +187,8 @@ function RichTextTag({ <Text selectable={selectable} {...native({ - accessibilityLabel: _(msg`Hashtag: ${tag}`), - accessibilityHint: _(msg`Click here to open tag menu for ${tag}`), + accessibilityLabel: _(msg`Hashtag: #${tag}`), + accessibilityHint: _(msg`Click here to open tag menu for #${tag}`), accessibilityRole: isNative ? 'button' : undefined, onPress: open, onPressIn: onPressIn, @@ -214,7 +216,7 @@ function RichTextTag({ textDecorationColor: t.palette.primary_500, }, ]}> - {tag} + {text} </Text> </TagMenu> </React.Fragment> |