Skip to content

Commit

Permalink
Merge pull request #6708 from Expensify/Rory-SendButtonHitSlop
Browse files Browse the repository at this point in the history
Add some hitSlop around the send button
  • Loading branch information
deetergp authored Dec 15, 2021
2 parents cd3df25 + 6b5410a commit ebfb904
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
10 changes: 7 additions & 3 deletions src/pages/home/report/ReportActionCompose.js
Original file line number Diff line number Diff line change
Expand Up @@ -697,12 +697,16 @@ class ReportActionCompose extends React.Component {
<View style={[styles.justifyContentEnd]}>
<Tooltip text={this.props.translate('common.send')}>
<TouchableOpacity
style={[styles.chatItemSubmitButton,
this.state.isCommentEmpty
? styles.buttonDisable : styles.buttonSuccess]}
style={[
styles.chatItemSubmitButton,
this.state.isCommentEmpty ? styles.buttonDisable : styles.buttonSuccess,
]}
onPress={this.submitForm}
underlayColor={themeColors.componentBG}
disabled={this.state.isCommentEmpty || isBlockedFromConcierge || isArchivedChatRoom}
hitSlop={{
top: 3, right: 3, bottom: 3, left: 3,
}}
>
<Icon src={Expensicons.Send} fill={themeColors.componentBG} />
</TouchableOpacity>
Expand Down
5 changes: 1 addition & 4 deletions src/styles/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -1299,10 +1299,7 @@ const styles = {
alignSelf: 'flex-end',
borderRadius: 6,
height: 32,
paddingTop: 6,
paddingRight: 6,
paddingBottom: 6,
paddingLeft: 6,
padding: 6,
margin: 3,
justifyContent: 'center',
},
Expand Down

0 comments on commit ebfb904

Please sign in to comment.