Skip to content

Commit 109c7d3

Browse files
authored
fix: add reaction button bg theme for filled and unfilled case (#3149)
1 parent 658b9df commit 109c7d3

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
@@ -456,6 +456,8 @@ export type Theme = {
456456
reactionButton: {
457457
filledColor: ColorValue;
458458
unfilledColor: ColorValue;
459+
filledBackgroundColor: ColorValue;
460+
unfilledBackgroundColor: ColorValue;
459461
};
460462
reactionPicker: {
461463
buttonContainer: ViewStyle;
@@ -1222,7 +1224,9 @@ export const defaultTheme: Theme = {
12221224
},
12231225
bottomSheet: {},
12241226
reactionButton: {
1227+
filledBackgroundColor: Colors.light_blue,
12251228
filledColor: Colors.accent_blue,
1229+
unfilledBackgroundColor: Colors.white,
12261230
unfilledColor: Colors.grey,
12271231
},
12281232
reactionPicker: {

0 commit comments

Comments
 (0)