microsoft-graph-toolkit
microsoft-graph-toolkit copied to clipboard
[BUG] [MGT-CHAT] Profile icons in Chat are being rendered on top of an open Profile card
Describe the bug When using the chat component, received messages will show a profile icon of the user you are communication with. Clicking on this profile icon will open a profile card containing details about that user. The problem is that any other profile icons will be incorrectly rendered above the profile card. (See screenshots section)
To Reproduce
- Go to the MGT Chat Test Harness.
- Receive multiple messages from another user in succession.
- Click on the profile icon of the first message received.
Expected behavior The Profile card should appear above all other elements of chat.
Screenshots
Environment (please complete the following information):
- OS: Windows 10
- Browser: Chrome
- Framework: React
- Context: Web
- Version: MGT 4
- Provider: Msal2Provider
Additional context
@musale I thought we'd addressed this issue?
@musale I thought we'd addressed this issue?
We did. I'm not sure what could've re-introduced it. I'll drill down on it tomorrow.
There's a new CSS class css-176
setting the z-index: 2
for the avatar. A solution to unset
or set this to 0
should suffice.
Ca we identify a more sustainable solution? As these classes are dynamically generated, it would be great to have a way to avoid this.