Skip to content

Commit 8824eb4

Browse files
committed
fix color value for Text with highlightString, let it inherit from partent Text
1 parent c6ef5fc commit 8824eb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/text/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export default class Text extends PureBaseComponent {
9090
return _.map(textParts, (text, index) => {
9191
const shouldHighlight = _.lowerCase(text) === _.lowerCase(highlightString);
9292
return (
93-
<Text key={index} style={shouldHighlight && [this.styles.highlight, highlightStyle]}>
93+
<Text key={index} color={null} style={shouldHighlight && [this.styles.highlight, highlightStyle]}>
9494
{text}
9595
</Text>
9696
);

0 commit comments

Comments
 (0)