Skip to content

Commit 906eade

Browse files
committed
chore: enhance touch target for close button in UnreadMessagesFloating
1 parent 2df8c20 commit 906eade

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/uikit-react-native/src/components/UnreadMessagesFloating.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ const UnreadMessagesFloating = ({ unreadMessageCount, visible, onPressClose }: U
2424
<Text body2 color={colors.onBackground02}>
2525
{STRINGS.GROUP_CHANNEL.LIST_FLOATING_UNREAD_MSG(unreadMessageCount)}
2626
</Text>
27-
<TouchableOpacity onPress={onPressClose} style={{ marginLeft: 4 }}>
27+
<TouchableOpacity
28+
onPress={onPressClose}
29+
style={{ marginLeft: 4 }}
30+
hitSlop={{ top: 12, bottom: 12, left: 14, right: 38 }}
31+
>
2832
<Icon icon={'close'} size={14} />
2933
</TouchableOpacity>
3034
</View>

0 commit comments

Comments
 (0)