Skip to content

Commit

Permalink
fix(ListBox): change ListBox z-index higher than modal (#8107)
Browse files Browse the repository at this point in the history
* fix(ListBox): change ListBox z-index higher than modal

* style(layout): add comment why dropdown has high zindex

* style(layout): sort values in descending order
  • Loading branch information
tw15egan committed Mar 23, 2021
1 parent 0aed1a8 commit eb43164
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions packages/components/src/globals/scss/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,17 @@
/// @type Map
/// @group global-layout
$z-indexes: (
// Dropdowns that render outside of a Modal should render above a Modal.
// Dropdowns below the modal will close when the Modal is opened, so
// having a higher z-index *should* not cause issues.
dropdown: 9100,
modal: 9000,
overlay: 6000,
dropdown: 6000,
header: 8000,
overlay: 6000,
floating: 6000,
footer: 5000,
hidden: - 1,
overflowHidden: - 1,
floating: 6000,
overflowHidden: - 1
);

/// @access public
Expand Down

0 comments on commit eb43164

Please sign in to comment.