Skip to content

Commit 4d88f9b

Browse files
[Chat] Increase mention popover's z-index (#3526)
* Increase mention popover's z-index * Change files * Duplicate change files for beta release
1 parent 7d6187c commit 4d88f9b

3 files changed

Lines changed: 22 additions & 8 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"type": "patch",
3+
"area": "fix",
4+
"workstream": "Mention",
5+
"comment": "Increase mention popover's z-index",
6+
"packageName": "@azure/communication-react",
7+
"email": "107075081+Leah-Xia-Microsoft@users.noreply.github.com",
8+
"dependentChangeType": "patch"
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"type": "patch",
3+
"area": "fix",
4+
"workstream": "Mention",
5+
"comment": "Increase mention popover's z-index",
6+
"packageName": "@azure/communication-react",
7+
"email": "107075081+Leah-Xia-Microsoft@users.noreply.github.com",
8+
"dependentChangeType": "patch"
9+
}

packages/react-components/src/components/styles/MentionPopover.style.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@
33

44
import { IStackStyles, mergeStyles, Theme } from '@fluentui/react';
55

6-
/**
7-
* @private
8-
* z-index to ensure that chat container has lower z-index than mention popover
9-
*/
10-
export const CHAT_CONTAINER_ZINDEX = 1;
11-
126
/**
137
* @private
148
*/
@@ -17,8 +11,10 @@ export const mentionPopoverContainerStyle = (theme: Theme): string =>
1711
boxShadow: theme.effects.elevation16,
1812
background: theme.semanticColors.bodyBackground,
1913
overflow: 'visible',
20-
// zIndex to set the mentionPopover above the chat container
21-
zIndex: CHAT_CONTAINER_ZINDEX + 1
14+
// zIndex to set the mentionPopover
15+
// Temporary set to a hardcoded high number to make sure it is on top of the other components
16+
// Will be replaced by a proper z-index solution after the Fluent 9 migration
17+
zIndex: 10000
2218
});
2319
/**
2420
* @private

0 commit comments

Comments
 (0)