Skip to content

VIDCS-3673: Z index issue when we have a full participants list and opening the kebab for last participants #152

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 6, 2025

Conversation

behei-vonage
Copy link
Contributor

What is this PR doing?

This PR fixes "Z index issue when we have a full participants list and opening the kebab for last participants"

How should this be manually tested?

To reproduce the issue, add a lot of participants to the meeting the room.
Click on the kebab menu button and notice that the number badge is over the popup:
image

To reproduce the fix, checkout this branch and do the steps above.
Notice that it is no longer the case.

What are the relevant tickets?

A maintainer will add this ticket number.

Resolves VIDCS-3673

Checklist

[ ] Branch is based on develop (not main).
[ ] Resolves a Known Issue.
[ ] If yes, did you remove the item from the docs/KNOWN_ISSUES.md?
[ ] Resolves an item reported in Issues.
If yes, which issue? Issue Number?

@behei-vonage behei-vonage self-assigned this Apr 25, 2025
@behei-vonage behei-vonage requested a review from Copilot April 25, 2025 15:42
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR resolves a z-index stacking issue where the number badge was overlaying the kebab pop-up on the full participants list.

  • Update the Popper component’s z-index in ParticipantListItemMenu.
  • Add a z-index style to ParticipantListButton to ensure the correct stacking order.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
frontend/src/components/MeetingRoom/ParticipantListItemMenu/ParticipantListItemMenu.tsx Updated Popper with an inline zIndex style to ensure the menu appears above overlapping elements.
frontend/src/components/MeetingRoom/ParticipantListButton/ParticipantListButton.tsx Added a zIndex style to the button to manage its stacking context relative to the Popper.

@@ -35,7 +35,7 @@ const ParticipantListItemMenu = ({
<IconButton onClick={handleClick} sx={{ marginRight: '-8px' }}>
<MoreVertIcon sx={{ fontSize: '18px' }} />
</IconButton>
<Popper open={isOpen} anchorEl={anchorEl} placement="bottom-start">
<Popper open={isOpen} anchorEl={anchorEl} placement="bottom-start" sx={{ zIndex: 10 }}>
Copy link
Preview

Copilot AI Apr 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Consider using a theme-based z-index constant instead of a magic number to maintain consistency with the rest of the UI and avoid potential conflicts with other components.

Copilot uses AI. Check for mistakes.

@@ -42,6 +42,7 @@ const ParticipantListButton = ({
backgroundColor: 'rgb(95, 99, 104)',
},
marginRight: '12px',
zIndex: 1,
Copy link
Preview

Copilot AI Apr 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Verify that the z-index value of 1 is appropriate for the stacking context, and consider refactoring to use a theme-based constant for consistent UI layering across components.

Copilot uses AI. Check for mistakes.

Copy link
Contributor

@cpettet cpettet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM Great job! :shipit:

Copy link
Collaborator

@v-kpheng v-kpheng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 💪 🚀

That said, any way to add automated tests to confirm that elements are rendered in expected stacking order?

@DeliaTok
Copy link
Collaborator

DeliaTok commented May 5, 2025

looks good!

@behei-vonage behei-vonage merged commit 560a8a0 into develop May 6, 2025
9 checks passed
@behei-vonage behei-vonage deleted the behei-vonage/vidcs-3673-overlap branch May 6, 2025 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants