Skip to content

Commit 6541b5e

Browse files
authored
fix: add reaction button bg theme for filled and unfilled case (#3147)
1 parent a6d7dd3 commit 6541b5e

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

package/src/components/MessageMenu/ReactionButton.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,13 @@ export const ReactionButton = (props: ReactionButtonProps) => {
2929
const { Icon, onPress, selected, type } = props;
3030
const {
3131
theme: {
32-
colors: { light_blue, white },
3332
messageMenu: {
34-
reactionButton: { filledColor, unfilledColor },
33+
reactionButton: {
34+
filledBackgroundColor,
35+
filledColor,
36+
unfilledBackgroundColor,
37+
unfilledColor,
38+
},
3539
reactionPicker: { buttonContainer, reactionIconSize },
3640
},
3741
},
@@ -49,7 +53,7 @@ export const ReactionButton = (props: ReactionButtonProps) => {
4953
onPress={onPressHandler}
5054
style={({ pressed }) => [
5155
styles.reactionButton,
52-
{ backgroundColor: pressed || selected ? light_blue : white },
56+
{ backgroundColor: pressed || selected ? filledBackgroundColor : unfilledBackgroundColor },
5357
buttonContainer,
5458
]}
5559
>

package/src/contexts/themeContext/utils/theme.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,8 @@ export type Theme = {
480480
reactionButton: {
481481
filledColor: ColorValue;
482482
unfilledColor: ColorValue;
483+
filledBackgroundColor: ColorValue;
484+
unfilledBackgroundColor: ColorValue;
483485
};
484486
reactionPicker: {
485487
buttonContainer: ViewStyle;
@@ -1274,7 +1276,9 @@ export const defaultTheme: Theme = {
12741276
},
12751277
bottomSheet: {},
12761278
reactionButton: {
1279+
filledBackgroundColor: Colors.light_blue,
12771280
filledColor: Colors.accent_blue,
1281+
unfilledBackgroundColor: Colors.white,
12781282
unfilledColor: Colors.grey,
12791283
},
12801284
reactionPicker: {

0 commit comments

Comments
 (0)