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

A default Overlay has the clickable div in front of the contents #234

Open
willeastcott opened this issue Jan 1, 2023 · 1 comment
Open
Labels
bug Something isn't working

Comments

@willeastcott
Copy link
Contributor

Describe the bug
If you create a default Overlay and append some other elements, those elements will appear behind the transparent clickable div that darkens everything and makes the content elements impossible to interact with.

To Reproduce
Steps to reproduce the behavior:

  1. Locate the Overlay example and remove the style:
        .pcui-overlay-content {
            z-index: 0;
        }
  1. Run the example
  2. See the problem

Expected behavior
The overlay's content should appear in front of the full-tab clickable UI.

Screenshots
image

How it should look:

image

A default overlay should not require the setting of a custom z-index for it to work.

@willeastcott willeastcott added the bug Something isn't working label Jan 1, 2023
@willeastcott
Copy link
Contributor Author

One thing I notice is that the z-index of the overlay element is hard-coded to 101:

This seems a little arbitrary. What is the strategy for complex applications to manage z-index? From scanning the source, we have:

  • NumericInput (slider): 9999
  • Menu: 401
  • Overlay: 101
  • MenuItem: 1
  • SelectInput (input list and shadow): 1
  • TreeView (drag handle): 4
  • Everything else: unspecified (so 0 presumably)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant