Skip to content

Commit

Permalink
Merge pull request #12965 from Expensify/georgia-new-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
dangrous authored Dec 2, 2022
2 parents aed921f + 402e725 commit 835e9d2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
7 changes: 3 additions & 4 deletions src/pages/home/report/ReportActionCompose.js
Original file line number Diff line number Diff line change
Expand Up @@ -693,9 +693,8 @@ class ReportActionCompose extends React.Component {
<View style={[styles.justifyContentEnd]}>
<Tooltip text={this.props.translate('common.send')}>
<TouchableOpacity
style={[
styles.chatItemSubmitButton,
(this.state.isCommentEmpty || hasExceededMaxCommentLength) ? styles.buttonDisable : styles.buttonSuccess,
style={[styles.chatItemSubmitButton,
(this.state.isCommentEmpty || hasExceededMaxCommentLength) ? undefined : styles.buttonSuccess,
]}
onPress={this.submitForm}
underlayColor={themeColors.componentBG}
Expand All @@ -708,7 +707,7 @@ class ReportActionCompose extends React.Component {
top: 3, right: 3, bottom: 3, left: 3,
}}
>
<Icon src={Expensicons.Send} fill={themeColors.componentBG} />
<Icon src={Expensicons.Send} fill={(this.state.isCommentEmpty || hasExceededMaxCommentLength) ? themeColors.icon : themeColors.textLight} />
</TouchableOpacity>
</Tooltip>
</View>
Expand Down
18 changes: 10 additions & 8 deletions src/styles/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -1370,7 +1370,7 @@ const styles = {
chatItemComposeBox: {
backgroundColor: themeColors.componentBG,
borderWidth: 1,
borderRadius: variables.componentBorderRadiusNormal,
borderRadius: variables.componentBorderRadiusRounded,
minHeight: variables.componentSizeNormal,
},

Expand Down Expand Up @@ -1437,10 +1437,11 @@ const styles = {

chatItemSubmitButton: {
alignSelf: 'flex-end',
borderRadius: 6,
borderRadius: variables.componentBorderRadiusRounded,
backgroundColor: themeColors.transparent,
height: 32,
padding: 6,
margin: 3,
margin: 4,
justifyContent: 'center',
},

Expand Down Expand Up @@ -1522,11 +1523,12 @@ const styles = {
alignSelf: 'flex-end',
borderRightColor: themeColors.border,
borderRightWidth: 1,
height: 26,
marginBottom: 6,
marginTop: 6,
height: 32,
width: 32,
marginBottom: 4,
marginTop: 4,
marginLeft: 4,
justifyContent: 'center',
width: 39,
},

composerSizeButton: {
Expand All @@ -1536,7 +1538,7 @@ const styles = {
marginBottom: 6,
marginTop: 6,
justifyContent: 'center',
width: 39,
width: 32,
},

chatItemAttachmentPlaceholder: {
Expand Down
1 change: 1 addition & 0 deletions src/styles/variables.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export default {
componentBorderRadiusSmall: 4,
componentBorderRadiusNormal: 8,
componentBorderRadiusCard: 12,
componentBorderRadiusRounded: 20,
buttonBorderRadius: 100,
avatarSizeLarge: 80,
avatarSizeNormal: 40,
Expand Down

0 comments on commit 835e9d2

Please sign in to comment.