Skip to content

[EuiComboBox] Combobox popover can be hidden behind EuiBottomBar #4872

Closed

Description

@jloleysens

On EUI v33.0.0 it is possible to have the combobox popover appear under the EuiBottomBar.

Screenshot

There are 3 items in the this popover but only 2 are visible

Screenshot 2021-06-10 at 15 04 55

Example

https://codesandbox.io/s/heuristic-waterfall-1ntg0?file=/src/index.tsx

Activity

  1. cchaos commented on Jun 10, 2021

    @cchaos
    Contributor

    Z-index issues are really hard to control from an external library. We do our best when it comes to portal content to know, for example, that a Modal should always be on top, or that a fixed element should have a high z-index. EuiComboBox popover's inherit their z-index from their current position and add just a slight bit 100 to ensure it lives on top of any other page content. You should be able to adjust the combo box's z-index to something higher than the bottom bar to fix this.

    Other approaches would be

    • use the EuiPageTemplate with a built in bottomBar
    • change the bottom bar's position to sticky

    The only thing we might be able to do on the EUI side, for combo boxes specifically, is to allow passing the buffer prop through to the EuiPopover. Or have the EuiPopover always also test and account for any padding added to the <body> element.

  2. jloleysens commented on Jun 10, 2021

    @jloleysens
    Author

    Z-index issues are really hard to control from an external library

    Yeah I can imagine 😅

    The only thing we might be able to do on the EUI side...

    From a user perspective, knowing all the challenges that exist with z-index, it would be nice to have a way to "reach in" to the component to correct z-index issues. In this case something like the "buffer" prop on the EuiPopover component could have worked really well. In this case, I was able to "fix" the issue by pushing the EuiBottomBar back instead of bringing the EuiComboBox forward (this is the PR that will contain this work for reference elastic/kibana#101714)

  3. jloleysens commented on Jun 14, 2021

    @jloleysens
    Author

    @cchaos One alternative I was wondering about, is it not possible to always have popovers with higher z-index value than the bottom bar or other "hovering" EUI components? It seems as though we would always want these in front, but I might be missing a case where this assumption does not hold.

  4. github-actions commented on Dec 11, 2021

    @github-actions

    👋 Hey there. This issue hasn't had any activity for 180 days. We'll automatically close it if that trend continues for another week. If you feel this issue is still valid and needs attention please let us know with a comment.

  5. added
    stale-issue
    on Dec 11, 2021
  6. github-actions commented on Dec 19, 2021

    @github-actions

    ❌ We're automatically closing this issue due to lack of activity. Please comment if you feel this was done in error.

  7. added
    stale-issue-closed
    on Dec 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    stale-issuestale-issue-closed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions