@elastic/eui
Version:
Elastic UI Component Library
25 lines (23 loc) • 1.07 kB
JavaScript
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/
/**
* Z-Index
*
* Remember that z-index is relative to parent and based on the stacking context.
* z-indexes only compete against other z-indexes when they exist as children of
* that shared parent.
*
* That means a popover with a settings of 2, will still show above a modal
* with a setting of 100, if it is within that modal and not besides it.
*
* Generally that means it's a good idea to consider things added to this file
* as competitive only as siblings.
*
* https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Positioning/Understanding_z_index/The_stacking_context
*/
export var EuiThemeLevels = ['toast', 'modal', 'mask', 'navigation', 'menu', 'header', 'flyout', 'maskBelowHeader', 'content'];