Some checks failed
No response / noResponse (push) Has been cancelled
CI / Continuous releases (push) Has been cancelled
CI / test-dev (macos-latest) (push) Has been cancelled
CI / test-dev (ubuntu-latest) (push) Has been cancelled
CI / test-dev (windows-latest) (push) Has been cancelled
Maintenance / main (push) Has been cancelled
Scorecards supply-chain security / Scorecards analysis (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
22 lines
836 B
Markdown
22 lines
836 B
Markdown
# z-index
|
||
|
||
<p class="description">z-index is the CSS property that helps control layout by providing a third axis to arrange content.</p>
|
||
|
||
Several Material UI components utilize `z-index`, employing a default z-index scale
|
||
that has been designed to properly layer drawers, modals, snackbars, tooltips, and more.
|
||
|
||
The `z-index` values start at an arbitrary number, high and specific enough to ideally avoid conflicts:
|
||
|
||
- mobile stepper: 1000
|
||
- fab: 1050
|
||
- speed dial: 1050
|
||
- app bar: 1100
|
||
- drawer: 1200
|
||
- modal: 1300
|
||
- snackbar: 1400
|
||
- tooltip: 1500
|
||
|
||
These values can always be customized.
|
||
You will find them in the theme under the [`zIndex`](/material-ui/customization/default-theme/?expand-path=$.zIndex) key of the theme.
|
||
Customization of individual values is discouraged; should you change one, you likely need to change them all.
|