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

Fix combobox list z-index #1192

Merged
merged 3 commits into from
Sep 13, 2018
Merged

Fix combobox list z-index #1192

merged 3 commits into from
Sep 13, 2018

Conversation

cchaos
Copy link
Contributor

@cchaos cchaos commented Sep 13, 2018

Especially when inside a modal.

Summary

I basically removed any z-index from the input itself which was there in case the list dropped upward and would then put the input on top of the list to hide the extra drop shadow. Instead, I'm just changing the drop shadow to no have any appearance below the list. Then I modified the combobox z-index variable to be one more than the modal and only applying it to the options list.

Before

After

Checklist

  • This was checked in mobile
  • This was checked in IE11
  • This was checked in dark mode
    - [ ] Any props added have proper autodocs
    - [ ] Documentation examples were added
  • A changelog entry exists and is marked appropriately
    - [ ] This was checked for breaking changes and labeled appropriately
    - [ ] Jest tests were updated or added to match the most common scenarios
    - [ ] This was checked against keyboard-only and screenreader scenarios

Especially when inside a modal.
@cchaos cchaos added the bug label Sep 13, 2018
Copy link
Contributor

@bevacqua bevacqua left a comment

Choose a reason for hiding this comment

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

Wonderous!

Copy link
Contributor

@snide snide left a comment

Choose a reason for hiding this comment

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

Tested in browser and checked code.

@cchaos cchaos merged commit 818820d into elastic:master Sep 13, 2018
@cchaos cchaos deleted the combo-z-index branch September 13, 2018 21:10
@snide snide mentioned this pull request Oct 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants