Skip to content

Commit

Permalink
[C-3608] Increase pressable area for cover photo upload (native) (#7165)
Browse files Browse the repository at this point in the history
  • Loading branch information
DejayJD authored Jan 16, 2024
1 parent 9012df5 commit 966e438
Showing 1 changed file with 28 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,35 @@ const CoverPhoto = (props: CoverPhotoProps) => {
topCornerRadius={onSelectCoverPhoto ? 'm' : undefined}
>
{onSelectCoverPhoto ? (
<IconButton
accessibilityLabel={messages.selectCoverPhoto}
style={{ position: 'absolute', top: spacing.m, right: spacing.m }}
color='staticWhite'
shadow='near'
<Pressable
// we want the pressable surface larger than just the icon
hitSlop={{
bottom: spacing.unit10,
left: spacing.unit7,
right: 0,
top: 0
}}
onPress={onSelectCoverPhoto}
icon={IconImage}
/>
style={{
position: 'absolute',
top: 0,
right: 0,
display: 'flex'
}}
>
<IconButton
accessibilityLabel={messages.selectCoverPhoto}
style={{
paddingTop: spacing.m,
paddingRight: spacing.m,
borderRadius: 0
}}
color='staticWhite'
shadow='near'
onPress={onSelectCoverPhoto}
icon={IconImage}
/>
</Pressable>
) : null}
</HarmonyCoverPhoto>
)
Expand Down

0 comments on commit 966e438

Please sign in to comment.