Skip to content
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

Dropdown in a dialog is showing dropdown content below dialog #4373

Open
saikeys opened this issue Nov 1, 2024 · 3 comments
Open

Dropdown in a dialog is showing dropdown content below dialog #4373

saikeys opened this issue Nov 1, 2024 · 3 comments
Labels
community For issues that have been raised by folks outside the core Salt team component: dialog component: dropdown status: needs more info This doesn't seem right

Comments

@saikeys
Copy link

saikeys commented Nov 1, 2024

Hello, i've just starting using salt-ds components and new to react. I am seeing a issue with salt dropdown within a dialog showing dropdown content below dialog. Tried to set the z-index for dialog and a higher value for dropdown but doesn't seem to resolve. Please advise. No additional styling being used. Attached image related to the issue.

salt-ds/core version being used in 1.37.1

Thank you.

@origami-z
Copy link
Contributor

@saikeys Thanks for using Salt. I can't reproduce the problem you're having, please provide some minimal reproducible code. See below my example
https://stackblitz.com/edit/salt-template-ypjwsy?file=package.json,App.tsx

@saikeys
Copy link
Author

saikeys commented Nov 5, 2024

Thank you. In our scenario we are using AG-Grid and based on row selection, button click would display a dialog with different components. In salt-ds/theme/index.css --salt-zIndex-popout is set to 1000. Setting the zIndex of dialog box to 900 resolved the issue.

@origami-z
Copy link
Contributor

Thank you. In our scenario we are using AG-Grid and based on row selection, button click would display a dialog with different components. In salt-ds/theme/index.css --salt-zIndex-popout is set to 1000. Setting the zIndex of dialog box to 900 resolved the issue.

Dropdown's Option list uses --salt-zIndex-flyover and Dialog uses --salt-zIndex-modal. Which component are you using has --salt-zIndex-popout?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community For issues that have been raised by folks outside the core Salt team component: dialog component: dropdown status: needs more info This doesn't seem right
Projects
Development

No branches or pull requests

2 participants