Skip to content

Commit

Permalink
compose: Fix text-color contrast in mention-unsubscribed warning.
Browse files Browse the repository at this point in the history
This color is a pretty light one; it needs a dark text color to
get acceptable contrast for legibility.
  • Loading branch information
gnprice committed Aug 6, 2020
1 parent 387ae00 commit 29168ac
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/message/MentionedUserNotSubscribed.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,15 @@ const styles = StyleSheet.create({
},
text: {
flex: 1,
color: 'white',
color: 'black',
},
button: {
backgroundColor: 'orange',
padding: 6,
},
buttonText: {
color: 'black',
},
});

class MentionedUserNotSubscribed extends PureComponent<Props> {
Expand Down Expand Up @@ -68,7 +71,12 @@ class MentionedUserNotSubscribed extends PureComponent<Props> {
}}
style={styles.text}
/>
<ZulipButton style={styles.button} text="Subscribe" onPress={this.subscribeToStream} />
<ZulipButton
style={styles.button}
textStyle={styles.buttonText}
text="Subscribe"
onPress={this.subscribeToStream}
/>
</TouchableOpacity>
</View>
);
Expand Down

0 comments on commit 29168ac

Please sign in to comment.