Skip to content

Commit 75c2682

Browse files
committed
[Calling] Send reaction button component (#3997)
1 parent b92b3fa commit 75c2682

5 files changed

Lines changed: 10 additions & 6 deletions

File tree

packages/communication-react/review/beta/communication-react.api.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,7 @@ export type CallCompositeIcons = {
532532
RaiseHandContextualMenuItem?: JSX.Element;
533533
ReactionContextualMenuItem?: JSX.Element;
534534
LowerHandContextualMenuItem?: JSX.Element;
535+
ReactionButtonIcon?: JSX.Element;
535536
ErrorBarCallCameraAccessDenied?: JSX.Element;
536537
ErrorBarCallCameraAlreadyInUse?: JSX.Element;
537538
ErrorBarCallLocalVideoFreeze?: JSX.Element;
@@ -2455,6 +2456,7 @@ export const DEFAULT_COMPOSITE_ICONS: {
24552456
RaiseHandContextualMenuItem: JSX.Element;
24562457
ReactionContextualMenuItem?: JSX.Element | undefined;
24572458
LowerHandContextualMenuItem: JSX.Element;
2459+
ReactionButtonIcon: JSX.Element;
24582460
ErrorBarCallCameraAccessDenied: JSX.Element;
24592461
ErrorBarCallCameraAlreadyInUse: JSX.Element;
24602462
ErrorBarCallLocalVideoFreeze: JSX.Element;

packages/react-components/src/components/ReactionButton.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,11 @@ export const ReactionButton = (props: ReactionButtonProps): JSX.Element => {
125125
const reactionButtonStyles = (theme: Theme): IButtonStyles => ({
126126
rootChecked: {
127127
background: theme.palette.themePrimary,
128-
color: DefaultPalette.white,
129-
':focus::after': { outlineColor: `${DefaultPalette.white}` }
128+
color: DefaultPalette.white
130129
},
131130
rootCheckedHovered: {
132131
background: theme.palette.themePrimary,
133-
color: DefaultPalette.white,
134-
':focus::after': { outlineColor: `${DefaultPalette.white}` }
132+
color: DefaultPalette.white
135133
},
136134
labelChecked: { color: DefaultPalette.white }
137135
});

packages/react-components/src/localization/locales/en-US/strings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,9 @@
124124
"tooltipOffContent": "Raise Hand"
125125
},
126126
"reactionButton": {
127-
"label": "Send a reaction",
127+
"label": "React",
128128
"tooltipDisabledContent": "Reaction action is disabled",
129-
"tooltipContent": "Reaction action"
129+
"tooltipContent": "Send a reaction"
130130
},
131131
"messageThread": {
132132
"yesterday": "Yesterday",

packages/react-composites/review/beta/react-composites.api.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,7 @@ export type CallCompositeIcons = {
350350
RaiseHandContextualMenuItem?: JSX.Element;
351351
ReactionContextualMenuItem?: JSX.Element;
352352
LowerHandContextualMenuItem?: JSX.Element;
353+
ReactionButtonIcon?: JSX.Element;
353354
ErrorBarCallCameraAccessDenied?: JSX.Element;
354355
ErrorBarCallCameraAlreadyInUse?: JSX.Element;
355356
ErrorBarCallLocalVideoFreeze?: JSX.Element;
@@ -1411,6 +1412,7 @@ export const DEFAULT_COMPOSITE_ICONS: {
14111412
RaiseHandContextualMenuItem: JSX.Element;
14121413
ReactionContextualMenuItem?: JSX.Element | undefined;
14131414
LowerHandContextualMenuItem: JSX.Element;
1415+
ReactionButtonIcon: JSX.Element;
14141416
ErrorBarCallCameraAccessDenied: JSX.Element;
14151417
ErrorBarCallCameraAlreadyInUse: JSX.Element;
14161418
ErrorBarCallLocalVideoFreeze: JSX.Element;

packages/react-composites/src/composites/common/icons.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,8 @@ export type CallCompositeIcons = {
195195
/* @conditional-compile-remove(reaction) */
196196
ReactionContextualMenuItem?: JSX.Element;
197197
LowerHandContextualMenuItem?: JSX.Element;
198+
/* @conditional-compile-remove(reaction) */
199+
ReactionButtonIcon?: JSX.Element;
198200
ErrorBarCallCameraAccessDenied?: JSX.Element;
199201
ErrorBarCallCameraAlreadyInUse?: JSX.Element;
200202
ErrorBarCallLocalVideoFreeze?: JSX.Element;

0 commit comments

Comments
 (0)