From 792bbf6be3b3331a7067be4228678920326a351f Mon Sep 17 00:00:00 2001 From: vladoseeg Date: Thu, 18 Apr 2024 18:47:36 +0300 Subject: [PATCH] feat(Overlay): adjust storybook examples --- .../Overlay/__stories__/Overlay.scss | 7 ++++++ .../Overlay/__stories__/Overlay.stories.tsx | 25 ++++++++++++------- 2 files changed, 23 insertions(+), 9 deletions(-) diff --git a/src/components/Overlay/__stories__/Overlay.scss b/src/components/Overlay/__stories__/Overlay.scss index 1298b33a34..046f42cecd 100644 --- a/src/components/Overlay/__stories__/Overlay.scss +++ b/src/components/Overlay/__stories__/Overlay.scss @@ -10,6 +10,13 @@ $block: '.#{variables.$ns}overlay-showcase'; padding: var(--g-spacing-1); } + &__dialog-content { + position: relative; + + width: 480px; + height: 212px; + } + &__table table { min-width: 763px; } diff --git a/src/components/Overlay/__stories__/Overlay.stories.tsx b/src/components/Overlay/__stories__/Overlay.stories.tsx index 33c47c9d84..f843eee87a 100644 --- a/src/components/Overlay/__stories__/Overlay.stories.tsx +++ b/src/components/Overlay/__stories__/Overlay.stories.tsx @@ -8,6 +8,7 @@ import {Dialog as DialogComponent} from '../../Dialog'; import {Icon} from '../../Icon'; import {Loader} from '../../Loader'; import {Table as TableComponent} from '../../Table'; +import {Box, Flex} from '../../layout'; import {block} from '../../utils/cn'; import {Overlay} from '../Overlay'; import type {OverlayProps} from '../Overlay'; @@ -31,7 +32,7 @@ const DefaultTemplate: StoryFn = (args) => {
Example of overlay
with loader
- +
@@ -95,17 +96,23 @@ const DialogTemplate: StoryFn = (args) => { }} aria-labelledby={dialogTitleId} > -
- - Dialog.Body - alert('onApply')} - textButtonApply="Apply" - /> + +
+ Some text to show in dialog body - + + + + Loading text about process with long description to show +
max content-width +
+
+ alert('onApply')} + textButtonApply="Apply" + /> ); };