Align interaction states of read more

This commit is contained in:
Eric Bailey
2025-06-05 10:40:25 -05:00
parent 8144eac8a2
commit da88862c76
2 changed files with 15 additions and 8 deletions
@@ -72,14 +72,22 @@ export const ThreadItemReadMore = memo(function ThreadItemReadMore({
to={item.href}
style={[a.pt_sm, a.pb_md, a.gap_xs]}>
{({hovered, pressed}) => {
const interacted = hovered || pressed
return (
<>
<CirclePlus fill={t.atoms.text_contrast_high.color} width={18} />
<CirclePlus
fill={
interacted
? t.atoms.text_contrast_high.color
: t.atoms.text_contrast_low.color
}
width={18}
/>
<Text
style={[
a.text_sm,
t.atoms.text_contrast_medium,
(hovered || pressed) && a.underline,
interacted && a.underline,
]}>
<Trans>
Read {item.moreReplies} more{' '}
@@ -46,13 +46,12 @@ export const ThreadItemReadMoreUp = memo(function ThreadItemReadMoreUp({
},
]}>
<UpIcon
fill="currentColor"
fill={
interacted
? t.atoms.text_contrast_high.color
: t.atoms.text_contrast_low.color
}
width={24}
style={[
t.atoms.text_contrast_low,
a.transition_all,
interacted && [t.atoms.text_contrast_high],
]}
/>
</View>
<Text