Sorry, but you either have no stories or none are selected somehow.
If the problem persists, check the browser console, or the terminal you've run Storybook from.
The component failed to render properly, likely due to a configuration issue in Storybook. Here are some common causes and how you can address them:
This is a pre-release version and is not production ready. For new and ongoing projects, please refer to the latest Design System version.
Use our .z-{value}
utility classes to control element stacking. Each element must
have a non-static position (e.g. relative
, absolute
or
fixed
) for the z-index to take effect.
Available default classes:
.z-n1
.z-0
.z-1
.z-2
.z-3
Available named classes:
.z-header
for the header.z-spinner
for spinners.z-toast
for toasts.z-fixed
for fixed positioned elementsThe named classes are to be used on the intended components in order to have them stacked correctly.
preview-6152--swisspost-design-system-next.netlify.app/?path=/docs/d4b7f8a2-1c3e-4b5d-9f1a-2e6b0c7a9f3d--docs&story=Z Index#d4b7f8a2-1c3e-4b5d-9f1a-2e6b0c7a9f3d--z-index
/?path=/story/d4b7f8a2-1c3e-4b5d-9f1a-2e6b0c7a9f3d--z-index&full=true
<div class="container-examples"> <div class="z-0 position-absolute">z-0</div> <div class="z-1 position-absolute">z-1</div> <div class="z-2 position-absolute">z-2</div> </div>