Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"type": "patch",
"area": "fix",
"workstream": "FluentUI",
"comment": "Fix an issue when the menu button was not accessible sometimes",
"packageName": "@azure/communication-react",
"email": "98852890+vhuseinova-msft@users.noreply.github.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"type": "patch",
"area": "fix",
"workstream": "FluentUI",
"comment": "Fix an issue when the menu button was not accessible sometimes",
"packageName": "@azure/communication-react",
"email": "98852890+vhuseinova-msft@users.noreply.github.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -330,11 +330,7 @@ const MessageBubble = (props: ChatMessageComponentAsMessageBubbleProps): JSX.Ele
attached !== 'top' ? chatMyMessageStyles.bodyAttached : undefined,
mergeStyles(messageContainerStyle)
),
style: { ...createStyleFromV8Style(messageContainerStyle) },
// make body not focusable to remove repetitions from narrators.
// inner components are already focusable
tabIndex: -1,
role: 'presentation'
style: { ...createStyleFromV8Style(messageContainerStyle) }
}}
root={{
className: chatMyMessageStyles.root,
Expand All @@ -343,7 +339,6 @@ const MessageBubble = (props: ChatMessageComponentAsMessageBubbleProps): JSX.Ele
// `focused` controls is focused the whole `ChatMessage` or any of its children. When we're navigating
// with keyboard the focused element will be changed and there is no way to use `:focus` selector
const shouldPreserveFocusState = e.currentTarget.contains(e.relatedTarget);

setFocused(shouldPreserveFocusState);
},
onFocus: () => {
Expand All @@ -370,6 +365,7 @@ const MessageBubble = (props: ChatMessageComponentAsMessageBubbleProps): JSX.Ele
}
details={getMessageDetails()}
actions={{
tabIndex: 0,
children: actionMenuProps?.children,
className: mergeClasses(
chatMyMessageStyles.menu,
Expand Down Expand Up @@ -404,16 +400,18 @@ const MessageBubble = (props: ChatMessageComponentAsMessageBubbleProps): JSX.Ele
<FluentChatMessage
attached={attached}
key={props.message.messageId}
root={{ className: chatMessageStyles.root }}
author={<Text className={chatMessageAuthorStyle}>{message.senderDisplayName}</Text>}
body={{
className: chatItemMessageContainerClassName,
style: { ...createStyleFromV8Style(messageContainerStyle) },
root={{
className: chatMessageStyles.root,
// make body not focusable to remove repetitions from narrators.
// inner components are already focusable
tabIndex: -1,
role: 'none'
}}
author={<Text className={chatMessageAuthorStyle}>{message.senderDisplayName}</Text>}
Comment thread
vhuseinova-msft marked this conversation as resolved.
body={{
className: chatItemMessageContainerClassName,
style: { ...createStyleFromV8Style(messageContainerStyle) }
}}
data-ui-id="chat-composite-message"
timestamp={
<Text className={chatMessageDateStyle} data-ui-id={ids.messageTimestamp}>
Expand Down