Skip to content

Commit 23672c2

Browse files
committed
fix: suggestions background
1 parent 55dfba4 commit 23672c2

2 files changed

Lines changed: 12 additions & 5 deletions

File tree

package/src/components/AutoCompleteInput/AutoCompleteSuggestionItem.tsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export const CommandSuggestionItem = (item: CommandSuggestion) => {
7373
const { args, name } = item;
7474
const {
7575
theme: {
76-
colors: { black, grey },
76+
semantics,
7777
messageInput: {
7878
suggestions: {
7979
command: { args: argsStyle, container: commandContainer, title },
@@ -86,10 +86,16 @@ export const CommandSuggestionItem = (item: CommandSuggestion) => {
8686
return (
8787
<View style={[styles.commandContainer, commandContainer]}>
8888
{name ? <AutoCompleteSuggestionCommandIcon name={name} /> : null}
89-
<Text style={[styles.title, { color: black }, title]} testID='commands-item-title'>
89+
<Text
90+
style={[styles.title, { color: semantics.textPrimary }, title]}
91+
testID='commands-item-title'
92+
>
9093
{(name || '').replace(/^\w/, (char) => char.toUpperCase())}
9194
</Text>
92-
<Text style={[styles.args, { color: grey }, argsStyle]} testID='commands-item-args'>
95+
<Text
96+
style={[styles.args, { color: semantics.textTertiary }, argsStyle]}
97+
testID='commands-item-args'
98+
>
9399
{`/${name} ${args}`}
94100
</Text>
95101
</View>

package/src/components/AutoCompleteInput/AutoCompleteSuggestionList.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ export const AutoCompleteSuggestionList = ({
6262

6363
const {
6464
theme: {
65-
colors: { black, white },
6665
messageInput: {
6766
container: { maxHeight },
6867
},
@@ -106,7 +105,7 @@ export const AutoCompleteSuggestionList = ({
106105
onEndReached={loadMore}
107106
onEndReachedThreshold={0.1}
108107
renderItem={renderItem}
109-
style={[styles.flatlist, { backgroundColor: white, maxHeight, shadowColor: black }]}
108+
style={[styles.flatlist, { maxHeight }]}
110109
testID={'auto-complete-suggestion-list'}
111110
/>
112111
</Animated.View>
@@ -132,6 +131,8 @@ const useStyles = () => {
132131
borderColor: semantics.borderCoreDefault,
133132
},
134133
flatlist: {
134+
backgroundColor: semantics.composerBg,
135+
shadowColor: semantics.accentBlack,
135136
borderRadius: 8,
136137
elevation: 3,
137138
marginHorizontal: 8,

0 commit comments

Comments
 (0)