@fundamental-styles/mcp 0.41.7-rc.8 → 0.41.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/data/AI_USAGE.md +425 -0
- package/data/CHANGELOG.md +53 -3
- package/data/component-catalog.json +62 -209
- package/data/components/README.md +281 -0
- package/data/components/action-bar.md +443 -0
- package/data/components/ai-busy-indicator.md +79 -0
- package/data/components/ai-loading-bar.md +66 -0
- package/data/components/avatar-btp.md +198 -0
- package/data/components/avatar-group.md +2660 -0
- package/data/components/avatar-product-switch.md +476 -0
- package/data/components/avatar.md +993 -0
- package/data/components/bar.md +574 -0
- package/data/components/border-radius.md +148 -0
- package/data/components/border.md +412 -0
- package/data/components/breadcrumb.md +546 -0
- package/data/components/button-2.md +440 -0
- package/data/components/button-action-sheet.md +292 -0
- package/data/components/button-ai.md +730 -0
- package/data/components/button-btp.md +223 -0
- package/data/components/button-button.md +233 -0
- package/data/components/button-counter.md +176 -0
- package/data/components/button-patterns.md +731 -0
- package/data/components/button-split.md +459 -0
- package/data/components/button.md +469 -0
- package/data/components/calendar.md +5784 -0
- package/data/components/card-card-media.md +707 -0
- package/data/components/card-card.md +2426 -0
- package/data/components/card-layouts.md +1201 -0
- package/data/components/card.md +2404 -0
- package/data/components/carousel.md +1506 -0
- package/data/components/code.md +139 -0
- package/data/components/component-reset.md +272 -0
- package/data/components/components-icons-businesssuiteinappsymbol-icons.md +85 -0
- package/data/components/components-icons-sap-icons.md +147 -0
- package/data/components/components-icons-tnt-icons.md +85 -0
- package/data/components/container-queries.md +221 -0
- package/data/components/container.md +227 -0
- package/data/components/dialog-docs-static-busy-indicator.md +165 -0
- package/data/components/dialog-docs-static-dialog.md +949 -0
- package/data/components/dialog-docs-static-patterns.md +147 -0
- package/data/components/dialog-docs-static-settings.md +528 -0
- package/data/components/dialog-docs-static.md +982 -0
- package/data/components/dialog.md +606 -0
- package/data/components/dynamic-page-dynamic-page.md +1914 -0
- package/data/components/dynamic-page.md +973 -0
- package/data/components/dynamic-side.md +197 -0
- package/data/components/elevation.md +110 -0
- package/data/components/feed-input.md +346 -0
- package/data/components/feed-list.md +580 -0
- package/data/components/fieldset-2.md +292 -0
- package/data/components/fieldset-forms.md +169 -0
- package/data/components/fieldset.md +381 -0
- package/data/components/flexible-column-layout.md +205 -0
- package/data/components/form-group.md +287 -0
- package/data/components/form-header.md +71 -0
- package/data/components/form-item-2.md +98 -0
- package/data/components/form-item-3.md +134 -0
- package/data/components/form-item-4.md +556 -0
- package/data/components/form-item-5.md +182 -0
- package/data/components/form-item-6.md +539 -0
- package/data/components/form-item-7.md +239 -0
- package/data/components/form-item-ai.md +158 -0
- package/data/components/form-item-file-uploader.md +445 -0
- package/data/components/form-item-forms.md +234 -0
- package/data/components/form-item-patterns.md +426 -0
- package/data/components/form-item.md +464 -0
- package/data/components/form-label-ai.md +126 -0
- package/data/components/form-label-layouts.md +306 -0
- package/data/components/form-label-patterns.md +1175 -0
- package/data/components/form-label-status-indicator.md +1083 -0
- package/data/components/form-label-step-input.md +620 -0
- package/data/components/form-label.md +2876 -0
- package/data/components/generic-tag.md +747 -0
- package/data/components/grid-list-grid-list.md +1185 -0
- package/data/components/grid-list.md +1449 -0
- package/data/components/heading.md +66 -0
- package/data/components/horizontal-navigation.md +568 -0
- package/data/components/icon-tab-bar-dev.md +190 -0
- package/data/components/icon-tab-bar.md +2620 -0
- package/data/components/icon.md +171 -0
- package/data/components/iconBusinessSuite.md +92 -0
- package/data/components/iconTnt.md +92 -0
- package/data/components/illustrated-message.md +439 -0
- package/data/components/info-label.md +348 -0
- package/data/components/input-group.md +2068 -0
- package/data/components/label.md +66 -0
- package/data/components/layout-grid.md +447 -0
- package/data/components/layout-panel.md +261 -0
- package/data/components/layouts-layout-grid.md +608 -0
- package/data/components/layouts-paddings.md +133 -0
- package/data/components/layouts-section.md +287 -0
- package/data/components/list-2.md +148 -0
- package/data/components/list-3.md +735 -0
- package/data/components/list-list.md +790 -0
- package/data/components/list-object-list.md +1225 -0
- package/data/components/list.md +1286 -0
- package/data/components/media-queries.md +168 -0
- package/data/components/menu.md +946 -0
- package/data/components/message-box-docs-static-ai.md +149 -0
- package/data/components/message-box-docs-static.md +527 -0
- package/data/components/message-page-upload-collection.md +678 -0
- package/data/components/message-page.md +256 -0
- package/data/components/message-strip.md +977 -0
- package/data/components/message-toast.md +119 -0
- package/data/components/micro-process-flow.md +991 -0
- package/data/components/navigation-menu.md +366 -0
- package/data/components/navigation-navigation.md +1245 -0
- package/data/components/navigation.md +2604 -0
- package/data/components/numeric-content.md +317 -0
- package/data/components/object-attribute.md +96 -0
- package/data/components/object-identifier.md +227 -0
- package/data/components/object-marker.md +202 -0
- package/data/components/object-number.md +327 -0
- package/data/components/object-status.md +1538 -0
- package/data/components/off-screen.md +87 -0
- package/data/components/overflow.md +97 -0
- package/data/components/padding.md +122 -0
- package/data/components/paddings.md +130 -0
- package/data/components/page.md +300 -0
- package/data/components/pagination.md +672 -0
- package/data/components/panel-layouts.md +345 -0
- package/data/components/panel.md +514 -0
- package/data/components/patterns-label.md +74 -0
- package/data/components/popover-2.md +906 -0
- package/data/components/popover-ai.md +466 -0
- package/data/components/popover-btp.md +886 -0
- package/data/components/popover-deprecated.md +308 -0
- package/data/components/popover-message-popover.md +683 -0
- package/data/components/popover-notification.md +1511 -0
- package/data/components/popover-patterns.md +1100 -0
- package/data/components/popover-popover.md +1862 -0
- package/data/components/popover-quick-view.md +385 -0
- package/data/components/popover-timepicker.md +1836 -0
- package/data/components/popover-user-menu.md +1303 -0
- package/data/components/popover.md +1938 -0
- package/data/components/progress-indicator.md +351 -0
- package/data/components/prompt-input-ai.md +226 -0
- package/data/components/prompt-input.md +226 -0
- package/data/components/rating-indicator.md +1469 -0
- package/data/components/resizable-card-layout.md +951 -0
- package/data/components/scrollbar.md +86 -0
- package/data/components/search-field.md +287 -0
- package/data/components/section.md +250 -0
- package/data/components/segmented-button.md +324 -0
- package/data/components/shellbar.md +2183 -0
- package/data/components/side-nav.md +1562 -0
- package/data/components/skeleton.md +243 -0
- package/data/components/slider.md +395 -0
- package/data/components/splitter.md +353 -0
- package/data/components/table.md +2749 -0
- package/data/components/tabs.md +658 -0
- package/data/components/text-text.md +380 -0
- package/data/components/text.md +253 -0
- package/data/components/tile.md +1132 -0
- package/data/components/time.md +818 -0
- package/data/components/title.md +153 -0
- package/data/components/titles.md +83 -0
- package/data/components/token.md +311 -0
- package/data/components/tokenizer.md +398 -0
- package/data/components/tool-header.md +1352 -0
- package/data/components/tool-layout.md +199 -0
- package/data/components/toolbar-ai.md +174 -0
- package/data/components/toolbar-btp.md +526 -0
- package/data/components/toolbar-title-bar.md +473 -0
- package/data/components/toolbar.md +432 -0
- package/data/components/tree.md +1031 -0
- package/data/components/typography.md +435 -0
- package/data/components/variant-management.md +360 -0
- package/data/components/vertical-nav.md +589 -0
- package/data/components/wizard.md +1429 -0
- package/data/examples/Components/dialog/device-specifications.example.html +39 -30
- package/data/examples/Components/shellbar/optional-items.example.html +210 -157
- package/data/examples/Components/shellbar/overflow-toolbar.example.html +202 -177
- package/data/examples/Components/shellbar/responsive-paddings.example.html +217 -146
- package/data/examples/Components/shellbar/responsiveness.example.html +825 -613
- package/data/examples/Components/user-menu/default.example.html +241 -83
- package/data/schemas/badge.schema.json +1 -1
- package/data/schemas/button-split.schema.json +1 -1
- package/data/schemas/component-frontmatter.schema.json +123 -0
- package/data/schemas/component-markdown.schema.json +81 -0
- package/data/schemas/counter.schema.json +1 -1
- package/data/schemas/dynamic-page.schema.json +1 -1
- package/data/schemas/dynamic-side-content.schema.json +1 -1
- package/data/schemas/facet.schema.json +1 -1
- package/data/schemas/fieldset.schema.json +1 -1
- package/data/schemas/flexible-column-layout.schema.json +1 -1
- package/data/schemas/form-group.schema.json +3 -2
- package/data/schemas/form-header.schema.json +1 -1
- package/data/schemas/form-label.schema.json +1 -0
- package/data/schemas/form-message.schema.json +1 -1
- package/data/schemas/grid-list.schema.json +1 -1
- package/data/schemas/input-group.schema.json +1 -1
- package/data/schemas/layout-panel.schema.json +1 -1
- package/data/schemas/page.schema.json +1 -1
- package/data/schemas/quick-view.schema.json +2 -1
- package/data/schemas/section.schema.json +1 -1
- package/data/schemas/side-nav.schema.json +1 -1
- package/data/schemas/splitter.schema.json +1 -1
- package/data/schemas/tabs.schema.json +1 -1
- package/data/schemas/tile.schema.json +1 -1
- package/data/schemas/tool-layout.schema.json +1 -1
- package/data/schemas/user-menu.schema.json +10 -0
- package/data/schemas/wizard.schema.json +1 -1
- package/package.json +1 -1
- package/src/data/load-catalog.d.ts +2 -0
- package/src/data/load-catalog.js +5 -1
- package/src/data/load-catalog.js.map +1 -1
- package/src/data/load-markdown-docs.d.ts +44 -0
- package/src/data/load-markdown-docs.js +179 -0
- package/src/data/load-markdown-docs.js.map +1 -0
- package/src/data/markdown-cache.d.ts +60 -0
- package/src/data/markdown-cache.js +218 -0
- package/src/data/markdown-cache.js.map +1 -0
- package/src/server.js +72 -1
- package/src/server.js.map +1 -1
|
@@ -0,0 +1,949 @@
|
|
|
1
|
+
---
|
|
2
|
+
component: fd-dialog-docs-static
|
|
3
|
+
title: Components/Dialog
|
|
4
|
+
category: Components
|
|
5
|
+
selector: fd-dialog-docs-static
|
|
6
|
+
cssFile: dialog-docs-static.css
|
|
7
|
+
sourcePath: packages/styles/stories/Components/dialog/dialog.stories.js
|
|
8
|
+
generatedAt: 2026-05-28T16:01:41.649Z
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Components/Dialog
|
|
12
|
+
|
|
13
|
+
The dialog component is a container that appears in response to an action made by the user. It interrupts the app’s current process to prompt the user for either information or a confirmation, which requires them to make a decision before the process can continue. Dialog displays in a fixed position and is activated by adding the \
|
|
14
|
+
|
|
15
|
+
## Installation
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
npm install fundamental-styles
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
```html
|
|
22
|
+
<!-- Include theme -->
|
|
23
|
+
<link href="node_modules/fundamental-styles/dist/theming/sap_horizon.css" rel="stylesheet">
|
|
24
|
+
|
|
25
|
+
<!-- Include component CSS -->
|
|
26
|
+
<link href="node_modules/fundamental-styles/dist/dialog-docs-static.css" rel="stylesheet">
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Basic Usage
|
|
30
|
+
|
|
31
|
+
```html
|
|
32
|
+
<div class="fd-dialog-docs-static fd-dialog fd-dialog--active">
|
|
33
|
+
<div
|
|
34
|
+
class="fd-dialog__content fd-dialog__content--s"
|
|
35
|
+
role="dialog"
|
|
36
|
+
aria-modal="true"
|
|
37
|
+
aria-labelledby="dialog-title-1"
|
|
38
|
+
aria-describedby="dialog-description-1">
|
|
39
|
+
<span class="fd-dialog__resize-handle" role="presentation" aria-hidden="true"></span>
|
|
40
|
+
<header class="fd-dialog__header fd-bar">
|
|
41
|
+
<div class="fd-bar__left">
|
|
42
|
+
<div class="fd-bar__element">
|
|
43
|
+
<h2 class="fd-title fd-title--h5" id="dialog-title-1">
|
|
44
|
+
Dialog title
|
|
45
|
+
</h2>
|
|
46
|
+
</div>
|
|
47
|
+
</div>
|
|
48
|
+
</header>
|
|
49
|
+
<section class="fd-dialog__body">
|
|
50
|
+
<span id="dialog-description-1">
|
|
51
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat...
|
|
52
|
+
</span>
|
|
53
|
+
<div class="fd-dialog__loader">
|
|
54
|
+
<div class="fd-busy-indicator fd-busy-indicator--m" aria-hidden="false" aria-label="Loading">
|
|
55
|
+
<div class="fd-busy-indicator__circle"></div>
|
|
56
|
+
<div class="fd-busy-indicator__circle"></div>
|
|
57
|
+
<div class="fd-busy-indicator__circle"></div>
|
|
58
|
+
</div><br /><br />
|
|
59
|
+
</div>
|
|
60
|
+
</section>
|
|
61
|
+
<footer class="fd-dialog__footer fd-bar fd-bar--footer">
|
|
62
|
+
<div class="fd-bar__right">
|
|
63
|
+
<div class="fd-bar__element">
|
|
64
|
+
<button class="fd-dialog__decisive-button fd-button">
|
|
65
|
+
Begin button
|
|
66
|
+
</button>
|
|
67
|
+
</div>
|
|
68
|
+
<div class="fd-bar__element">
|
|
69
|
+
<button class="fd-dialog__decisive-button fd-button">
|
|
70
|
+
End button
|
|
71
|
+
</button>
|
|
72
|
+
</div>
|
|
73
|
+
</div>
|
|
74
|
+
</footer>
|
|
75
|
+
</div>
|
|
76
|
+
</div>
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
## States
|
|
80
|
+
|
|
81
|
+
| Class | Description |
|
|
82
|
+
|-------|-------------|
|
|
83
|
+
| `is-selected` | Selected state |
|
|
84
|
+
|
|
85
|
+
## Examples
|
|
86
|
+
|
|
87
|
+
### Default
|
|
88
|
+
|
|
89
|
+
The default dialog component displays a container comprising a header, title, and subheader; followed by a body (content area), loader, footer and action buttons. The container also features a resize handle in the bottom-right corner of the footer, see resizable dialog below for more information.
|
|
90
|
+
|
|
91
|
+
```html
|
|
92
|
+
<div class="fd-dialog-docs-static fd-dialog fd-dialog--active">
|
|
93
|
+
<div
|
|
94
|
+
class="fd-dialog__content fd-dialog__content--s"
|
|
95
|
+
role="dialog"
|
|
96
|
+
aria-modal="true"
|
|
97
|
+
aria-labelledby="dialog-title-1"
|
|
98
|
+
aria-describedby="dialog-description-1">
|
|
99
|
+
<span class="fd-dialog__resize-handle" role="presentation" aria-hidden="true"></span>
|
|
100
|
+
<header class="fd-dialog__header fd-bar">
|
|
101
|
+
<div class="fd-bar__left">
|
|
102
|
+
<div class="fd-bar__element">
|
|
103
|
+
<h2 class="fd-title fd-title--h5" id="dialog-title-1">
|
|
104
|
+
Dialog title
|
|
105
|
+
</h2>
|
|
106
|
+
</div>
|
|
107
|
+
</div>
|
|
108
|
+
</header>
|
|
109
|
+
<section class="fd-dialog__body">
|
|
110
|
+
<span id="dialog-description-1">
|
|
111
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat...
|
|
112
|
+
</span>
|
|
113
|
+
<div class="fd-dialog__loader">
|
|
114
|
+
<div class="fd-busy-indicator fd-busy-indicator--m" aria-hidden="false" aria-label="Loading">
|
|
115
|
+
<div class="fd-busy-indicator__circle"></div>
|
|
116
|
+
<div class="fd-busy-indicator__circle"></div>
|
|
117
|
+
<div class="fd-busy-indicator__circle"></div>
|
|
118
|
+
</div><br /><br />
|
|
119
|
+
</div>
|
|
120
|
+
</section>
|
|
121
|
+
<footer class="fd-dialog__footer fd-bar fd-bar--footer">
|
|
122
|
+
<div class="fd-bar__right">
|
|
123
|
+
<div class="fd-bar__element">
|
|
124
|
+
<button class="fd-dialog__decisive-button fd-button">
|
|
125
|
+
Begin button
|
|
126
|
+
</button>
|
|
127
|
+
</div>
|
|
128
|
+
<div class="fd-bar__element">
|
|
129
|
+
<button class="fd-dialog__decisive-button fd-button">
|
|
130
|
+
End button
|
|
131
|
+
</button>
|
|
132
|
+
</div>
|
|
133
|
+
</div>
|
|
134
|
+
</footer>
|
|
135
|
+
</div>
|
|
136
|
+
</div>
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
### Sizes
|
|
140
|
+
|
|
141
|
+
By default, dialog’s body has no horizontal paddings. If horizontal paddings are added, they should behave responsively based on dialog's window width.
|
|
142
|
+
|
|
143
|
+
####Horizontal padding
|
|
144
|
+
|
|
145
|
+
These modifier classes are used to display horizontal padding for dialog's header, subheader, body and footer in various sizes.
|
|
146
|
+
|
|
147
|
+
| rem | min-width | max width | modifier class |
|
|
148
|
+
| ---- | ---------- | ---------- | ----------- |
|
|
149
|
+
| 0 | _n/a_ | _n/a_ | \
|
|
150
|
+
|
|
151
|
+
```html
|
|
152
|
+
<div class="fd-dialog-docs-static fd-dialog fd-dialog--active">
|
|
153
|
+
<div
|
|
154
|
+
class="fd-dialog__content fd-dialog__content--s"
|
|
155
|
+
role="dialog"
|
|
156
|
+
aria-modal="true"
|
|
157
|
+
aria-labelledby="dialog-title-2"
|
|
158
|
+
aria-describedby="dialog-description-2"
|
|
159
|
+
>
|
|
160
|
+
|
|
161
|
+
<header class="fd-dialog__header fd-bar fd-bar--header">
|
|
162
|
+
<div class="fd-bar__left">
|
|
163
|
+
<div class="fd-bar__element">
|
|
164
|
+
<h2 class="fd-title fd-title--h5" id="dialog-title-2">
|
|
165
|
+
Small Dialog
|
|
166
|
+
</h2>
|
|
167
|
+
</div>
|
|
168
|
+
</div>
|
|
169
|
+
</header>
|
|
170
|
+
|
|
171
|
+
<section class="fd-dialog__body" id="dialog-description-2">
|
|
172
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt
|
|
173
|
+
</section>
|
|
174
|
+
|
|
175
|
+
<footer class="fd-dialog__footer fd-bar fd-bar--footer">
|
|
176
|
+
<div class="fd-bar__right">
|
|
177
|
+
<div class="fd-bar__element">
|
|
178
|
+
<button class="fd-dialog__decisive-button fd-button fd-button--emphasized">Save</button>
|
|
179
|
+
</div>
|
|
180
|
+
<div class="fd-bar__element">
|
|
181
|
+
<button class="fd-dialog__decisive-button fd-button fd-button--transparent">Cancel</button>
|
|
182
|
+
</div>
|
|
183
|
+
</div>
|
|
184
|
+
</footer>
|
|
185
|
+
</div>
|
|
186
|
+
</div>
|
|
187
|
+
<br />
|
|
188
|
+
<div class="fd-dialog-docs-static fd-dialog fd-dialog--active">
|
|
189
|
+
<div
|
|
190
|
+
class="fd-dialog__content fd-dialog__content--m"
|
|
191
|
+
role="dialog"
|
|
192
|
+
aria-modal="true"
|
|
193
|
+
aria-labelledby="dialog-title-3"
|
|
194
|
+
aria-describedby="dialog-description-3"
|
|
195
|
+
>
|
|
196
|
+
|
|
197
|
+
<header class="fd-dialog__header fd-bar fd-bar--header">
|
|
198
|
+
<div class="fd-bar__left">
|
|
199
|
+
<div class="fd-bar__element">
|
|
200
|
+
<h2 class="fd-title fd-title--h5" id="dialog-title-3">
|
|
201
|
+
Medium Dialog
|
|
202
|
+
</h2>
|
|
203
|
+
</div>
|
|
204
|
+
</div>
|
|
205
|
+
</header>
|
|
206
|
+
|
|
207
|
+
<section class="fd-dialog__body" id="dialog-description-3">
|
|
208
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt
|
|
209
|
+
</section>
|
|
210
|
+
|
|
211
|
+
<footer class="fd-dialog__footer fd-bar fd-bar--footer">
|
|
212
|
+
<div class="fd-bar__right">
|
|
213
|
+
<div class="fd-bar__element">
|
|
214
|
+
<button class="fd-dialog__decisive-button fd-button fd-button--emphasized">Save</button>
|
|
215
|
+
</div>
|
|
216
|
+
<div class="fd-bar__element">
|
|
217
|
+
<button class="fd-dialog__decisive-button fd-button fd-button--transparent">Cancel</button>
|
|
218
|
+
</div>
|
|
219
|
+
</div>
|
|
220
|
+
</footer>
|
|
221
|
+
</div>
|
|
222
|
+
</div>
|
|
223
|
+
<br />
|
|
224
|
+
<div class="fd-dialog-docs-static fd-dialog fd-dialog--active">
|
|
225
|
+
<div
|
|
226
|
+
class="fd-dialog__content fd-dialog__content--l"
|
|
227
|
+
role="dialog"
|
|
228
|
+
aria-modal="true"
|
|
229
|
+
aria-labelledby="dialog-title-4"
|
|
230
|
+
aria-describedby="dialog-description-4"
|
|
231
|
+
>
|
|
232
|
+
|
|
233
|
+
<header class="fd-dialog__header fd-bar fd-bar--header">
|
|
234
|
+
<div class="fd-bar__left">
|
|
235
|
+
<div class="fd-bar__element">
|
|
236
|
+
<h2 class="fd-title fd-title--h5" id="dialog-title-4">
|
|
237
|
+
Large Dialog
|
|
238
|
+
</h2>
|
|
239
|
+
</div>
|
|
240
|
+
</div>
|
|
241
|
+
</header>
|
|
242
|
+
|
|
243
|
+
<section class="fd-dialog__body" id="dialog-description-4">
|
|
244
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt
|
|
245
|
+
</section>
|
|
246
|
+
|
|
247
|
+
<footer class="fd-dialog__footer fd-bar fd-bar--footer">
|
|
248
|
+
<div class="fd-bar__right">
|
|
249
|
+
<div class="fd-bar__element">
|
|
250
|
+
<button class="fd-dialog__decisive-button fd-button fd-button--emphasized">Save</button>
|
|
251
|
+
</div>
|
|
252
|
+
<div class="fd-bar__element">
|
|
253
|
+
<button class="fd-dialog__decisive-button fd-button fd-button--transparent">Cancel</button>
|
|
254
|
+
</div>
|
|
255
|
+
</div>
|
|
256
|
+
</footer>
|
|
257
|
+
</div>
|
|
258
|
+
</div>
|
|
259
|
+
|
|
260
|
+
<br />
|
|
261
|
+
|
|
262
|
+
<div class="fd-dialog-docs-static fd-dialog fd-dialog--active">
|
|
263
|
+
<div
|
|
264
|
+
class="fd-dialog__content fd-dialog__content--xl"
|
|
265
|
+
role="dialog"
|
|
266
|
+
aria-modal="true"
|
|
267
|
+
aria-labelledby="dialog-title-5"
|
|
268
|
+
aria-describedby="dialog-description-5"
|
|
269
|
+
>
|
|
270
|
+
|
|
271
|
+
<header class="fd-dialog__header fd-bar fd-bar--header">
|
|
272
|
+
<div class="fd-bar__left">
|
|
273
|
+
<div class="fd-bar__element">
|
|
274
|
+
<h2 class="fd-title fd-title--h5" id="dialog-title-5">
|
|
275
|
+
Extra Large Dialog
|
|
276
|
+
</h2>
|
|
277
|
+
</div>
|
|
278
|
+
</div>
|
|
279
|
+
</header>
|
|
280
|
+
|
|
281
|
+
<section class="fd-dialog__body" id="dialog-description-5">
|
|
282
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt
|
|
283
|
+
</section>
|
|
284
|
+
|
|
285
|
+
<footer class="fd-dialog__footer fd-bar fd-bar--footer">
|
|
286
|
+
<div class="fd-bar__right">
|
|
287
|
+
<div class="fd-bar__element">
|
|
288
|
+
<button class="fd-dialog__decisive-button fd-button fd-button--emphasized">Save</button>
|
|
289
|
+
</div>
|
|
290
|
+
<div class="fd-bar__element">
|
|
291
|
+
<button class="fd-dialog__decisive-button fd-button fd-button--transparent">Cancel</button>
|
|
292
|
+
</div>
|
|
293
|
+
</div>
|
|
294
|
+
</footer>
|
|
295
|
+
</div>
|
|
296
|
+
</div>
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
### Resizable
|
|
300
|
+
|
|
301
|
+
Dialog can also be displayed with a resize handle by adding a span element with a \
|
|
302
|
+
|
|
303
|
+
```html
|
|
304
|
+
<div class="fd-dialog-docs-static fd-dialog fd-dialog--active">
|
|
305
|
+
<div
|
|
306
|
+
class="fd-dialog__content fd-dialog__content--s"
|
|
307
|
+
role="dialog"
|
|
308
|
+
aria-modal="true"
|
|
309
|
+
aria-labelledby="dialog-title-6"
|
|
310
|
+
aria-describedby="dialog-description-6"
|
|
311
|
+
>
|
|
312
|
+
<span class="fd-dialog__resize-handle" role="presentation" aria-hidden="true"></span>
|
|
313
|
+
|
|
314
|
+
<header class="fd-dialog__header fd-bar fd-bar--header">
|
|
315
|
+
<div class="fd-bar__left">
|
|
316
|
+
<div class="fd-bar__element">
|
|
317
|
+
<h2 class="fd-title fd-title--h5" id="dialog-title-6">
|
|
318
|
+
Lorem ipsum
|
|
319
|
+
</h2>
|
|
320
|
+
</div>
|
|
321
|
+
</div>
|
|
322
|
+
</header>
|
|
323
|
+
|
|
324
|
+
<section class="fd-dialog__body" id="dialog-description-6">
|
|
325
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt
|
|
326
|
+
</section>
|
|
327
|
+
|
|
328
|
+
<footer class="fd-dialog__footer fd-bar fd-bar--footer">
|
|
329
|
+
<div class="fd-bar__right">
|
|
330
|
+
<div class="fd-bar__element">
|
|
331
|
+
<button class="fd-dialog__decisive-button fd-button fd-button--emphasized">Save</button>
|
|
332
|
+
</div>
|
|
333
|
+
<div class="fd-bar__element">
|
|
334
|
+
<button class="fd-dialog__decisive-button fd-button fd-button--transparent">Cancel</button>
|
|
335
|
+
</div>
|
|
336
|
+
</div>
|
|
337
|
+
</footer>
|
|
338
|
+
</div>
|
|
339
|
+
</div>
|
|
340
|
+
```
|
|
341
|
+
|
|
342
|
+
### Draggable
|
|
343
|
+
|
|
344
|
+
Dialog can be draggable, enabling the user to drag the container around with their cursor on a desktop screen.
|
|
345
|
+
|
|
346
|
+
| Modifier class | Modification |
|
|
347
|
+
| ----------------: | :------------ |
|
|
348
|
+
| \
|
|
349
|
+
|
|
350
|
+
```html
|
|
351
|
+
<div class="fd-dialog-docs-static fd-dialog fd-dialog--active">
|
|
352
|
+
<div
|
|
353
|
+
class="fd-dialog__content fd-dialog__content--draggable-grab fd-dialog__content--s"
|
|
354
|
+
role="dialog"
|
|
355
|
+
aria-modal="true"
|
|
356
|
+
aria-labelledby="dialog-title-7"
|
|
357
|
+
aria-describedby="dialog-description-7"
|
|
358
|
+
>
|
|
359
|
+
<header class="fd-dialog__header fd-bar fd-bar--header">
|
|
360
|
+
<div class="fd-bar__left">
|
|
361
|
+
<div class="fd-bar__element">
|
|
362
|
+
<h2 class="fd-title fd-title--h5" id="dialog-title-7">
|
|
363
|
+
Lorem ipsum
|
|
364
|
+
</h2>
|
|
365
|
+
</div>
|
|
366
|
+
</div>
|
|
367
|
+
</header>
|
|
368
|
+
|
|
369
|
+
<section class="fd-dialog__body" id="dialog-description-7">
|
|
370
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt
|
|
371
|
+
</section>
|
|
372
|
+
|
|
373
|
+
<footer class="fd-dialog__footer fd-bar fd-bar--footer">
|
|
374
|
+
<div class="fd-bar__right">
|
|
375
|
+
<div class="fd-bar__element">
|
|
376
|
+
<button class="fd-dialog__decisive-button fd-button fd-button--emphasized">Save</button>
|
|
377
|
+
</div>
|
|
378
|
+
<div class="fd-bar__element">
|
|
379
|
+
<button class="fd-dialog__decisive-button fd-button fd-button--transparent">Cancel</button>
|
|
380
|
+
</div>
|
|
381
|
+
</div>
|
|
382
|
+
</footer>
|
|
383
|
+
</div>
|
|
384
|
+
</div>
|
|
385
|
+
```
|
|
386
|
+
|
|
387
|
+
### Selectable
|
|
388
|
+
|
|
389
|
+
The selectable dialog displays list items in the content area that can be selected. Users can search items from the list, select one or more items, and finalize their choice by selecting the _Select_ button. To display the selectable dialog, include the \
|
|
390
|
+
|
|
391
|
+
```html
|
|
392
|
+
<div class="fd-dialog-docs-static fd-dialog fd-dialog--active" id="select-dialog-example">
|
|
393
|
+
<div
|
|
394
|
+
class="fd-dialog__content"
|
|
395
|
+
role="dialog"
|
|
396
|
+
aria-modal="true"
|
|
397
|
+
aria-labelledby="dialog-title-8"
|
|
398
|
+
>
|
|
399
|
+
<header class="fd-dialog__header fd-bar fd-bar--header-with-subheader">
|
|
400
|
+
<div class="fd-bar__left">
|
|
401
|
+
<div class="fd-bar__element">
|
|
402
|
+
<h2 class="fd-title fd-title--h5" id="dialog-title-8">
|
|
403
|
+
Select Dialog
|
|
404
|
+
</h2>
|
|
405
|
+
</div>
|
|
406
|
+
</div>
|
|
407
|
+
<div class="fd-bar__right">
|
|
408
|
+
<div class="fd-bar__element">
|
|
409
|
+
<button class="fd-button fd-button--transparent">Clear</button>
|
|
410
|
+
</div>
|
|
411
|
+
</div>
|
|
412
|
+
</header>
|
|
413
|
+
|
|
414
|
+
<section class="fd-dialog__subheader fd-bar fd-bar--subheader">
|
|
415
|
+
<div class="fd-bar__middle">
|
|
416
|
+
<div class="fd-input-group">
|
|
417
|
+
<input class="fd-input fd-input-group__input" type="text" aria-label="search" placeholder="Search...">
|
|
418
|
+
<span class="fd-input-group__addon fd-input-group__addon--button">
|
|
419
|
+
<button class="fd-button fd-input-group__button fd-button--icon fd-button--transparent" aria-label="perform search">
|
|
420
|
+
<i class="sap-icon--search" role="presentation"></i>
|
|
421
|
+
</button>
|
|
422
|
+
</span>
|
|
423
|
+
</div>
|
|
424
|
+
</div>
|
|
425
|
+
</section>
|
|
426
|
+
|
|
427
|
+
<section class="fd-dialog__body fd-dialog__body--no-vertical-padding">
|
|
428
|
+
<ul class="fd-list fd-list--selection fd-list--no-border" aria-label="selection list" role="listbox">
|
|
429
|
+
<li role="option" tabindex="0" class="fd-list__item">
|
|
430
|
+
<div class="fd-form-item fd-list__form-item">
|
|
431
|
+
<input type="checkbox" class="fd-checkbox" id="Ai4ez4" aria-labelledby="Az0bg4">
|
|
432
|
+
<label tabindex="-1" class="fd-checkbox__label" for="Ai4ez4">
|
|
433
|
+
<span class="fd-checkbox__checkmark" aria-hidden="true"></span>
|
|
434
|
+
</label>
|
|
435
|
+
</div>
|
|
436
|
+
<span class="fd-list__title" id="Az0bg4">List item 1</span>
|
|
437
|
+
</li>
|
|
438
|
+
<li role="option" tabindex="0" class="fd-list__item is-selected" aria-selected="true">
|
|
439
|
+
<div class="fd-form-item fd-list__form-item">
|
|
440
|
+
<input type="checkbox" class="fd-checkbox" id="Ai4ez5" checked aria-labelledby="Az0bg5">
|
|
441
|
+
<label tabindex="-1" class="fd-checkbox__label" for="Ai4ez5">
|
|
442
|
+
<span class="fd-checkbox__checkmark" aria-hidden="true"></span>
|
|
443
|
+
</label>
|
|
444
|
+
</div>
|
|
445
|
+
<span class="fd-list__title" id="Az0bg5">List item 2</span>
|
|
446
|
+
</li>
|
|
447
|
+
<li role="option" tabindex="0" class="fd-list__item is-selected">
|
|
448
|
+
<div class="fd-form-item fd-list__form-item">
|
|
449
|
+
<input type="checkbox" class="fd-checkbox" id="Ai4ez6" checked aria-labelledby="Az0bg6">
|
|
450
|
+
<label tabindex="-1" class="fd-checkbox__label" for="Ai4ez6">
|
|
451
|
+
<span class="fd-checkbox__checkmark" aria-hidden="true"></span>
|
|
452
|
+
</label>
|
|
453
|
+
</div>
|
|
454
|
+
<span class="fd-list__title" id="Az0bg6">List item 3</span>
|
|
455
|
+
</li>
|
|
456
|
+
<li role="option" tabindex="0" class="fd-list__item">
|
|
457
|
+
<div class="fd-form-item fd-list__form-item">
|
|
458
|
+
<input type="checkbox" class="fd-checkbox" id="Ai4e44" aria-labelledby="440bg6">
|
|
459
|
+
<label tabindex="-1" class="fd-checkbox__label" for="Ai4e44">
|
|
460
|
+
<span class="fd-checkbox__checkmark" aria-hidden="true"></span>
|
|
461
|
+
</label>
|
|
462
|
+
</div>
|
|
463
|
+
<span class="fd-list__title" id="440bg6">List item 4</span>
|
|
464
|
+
</li>
|
|
465
|
+
<li role="option" tabindex="0" class="fd-list__item">
|
|
466
|
+
<div class="fd-form-item fd-list__form-item">
|
|
467
|
+
<input type="checkbox" class="fd-checkbox" id="Ai4e55" aria-labelledby="550bg6">
|
|
468
|
+
<label tabindex="-1" class="fd-checkbox__label" for="Ai4e55">
|
|
469
|
+
<span class="fd-checkbox__checkmark" aria-hidden="true"></span>
|
|
470
|
+
</label>
|
|
471
|
+
</div>
|
|
472
|
+
<span class="fd-list__title" id="550bg6">List item 5</span>
|
|
473
|
+
</li>
|
|
474
|
+
<li role="option" tabindex="0" class="fd-list__item">
|
|
475
|
+
<div class="fd-form-item fd-list__form-item">
|
|
476
|
+
<input type="checkbox" class="fd-checkbox" id="Ai4e66" aria-labelledby="660bg6">
|
|
477
|
+
<label tabindex="-1" class="fd-checkbox__label" for="Ai4e66">
|
|
478
|
+
<span class="fd-checkbox__checkmark" aria-hidden="true"></span>
|
|
479
|
+
</label>
|
|
480
|
+
</div>
|
|
481
|
+
<span class="fd-list__title" id="660bg6">List item 6</span>
|
|
482
|
+
</li>
|
|
483
|
+
</ul>
|
|
484
|
+
<span class="fd-list__footer">
|
|
485
|
+
2 items selected
|
|
486
|
+
</span>
|
|
487
|
+
</section>
|
|
488
|
+
|
|
489
|
+
<footer class="fd-dialog__footer fd-bar fd-bar--footer">
|
|
490
|
+
<div class="fd-bar__right">
|
|
491
|
+
<div class="fd-bar__element">
|
|
492
|
+
<button class="fd-dialog__decisive-button fd-button fd-button--emphasized">Select</button>
|
|
493
|
+
</div>
|
|
494
|
+
<div class="fd-bar__element">
|
|
495
|
+
<button class="fd-dialog__decisive-button fd-button fd-button--transparent">Cancel</button>
|
|
496
|
+
</div>
|
|
497
|
+
</div>
|
|
498
|
+
</footer>
|
|
499
|
+
</div>
|
|
500
|
+
</div>
|
|
501
|
+
```
|
|
502
|
+
|
|
503
|
+
### Loading
|
|
504
|
+
|
|
505
|
+
Dialog can display a busy indicator that signals to the user that data is loading. To display a busy indicator in the content area, add the `fd-busy-indicator--l` to the `fd-dialog__loader` container element. Although the busy indicator is large in this example, you can choose a smaller size. See **Busy Indicator** for more sizes.
|
|
506
|
+
|
|
507
|
+
```html
|
|
508
|
+
<div class="fd-dialog-docs-static fd-dialog fd-dialog--active" id="loading-dialog-example">
|
|
509
|
+
<div
|
|
510
|
+
class="fd-dialog__content fd-dialog__content--s"
|
|
511
|
+
role="dialog"
|
|
512
|
+
aria-modal="true"
|
|
513
|
+
aria-labelledby="dialog-title-9"
|
|
514
|
+
aria-describedby="dialog-description-9"
|
|
515
|
+
>
|
|
516
|
+
|
|
517
|
+
<header class="fd-dialog__header fd-bar fd-bar--header">
|
|
518
|
+
<div class="fd-bar__left">
|
|
519
|
+
<div class="fd-bar__element">
|
|
520
|
+
<h2 class="fd-title fd-title--h5" id="dialog-title-9">
|
|
521
|
+
Loading Data...
|
|
522
|
+
</h2>
|
|
523
|
+
</div>
|
|
524
|
+
</div>
|
|
525
|
+
</header>
|
|
526
|
+
|
|
527
|
+
<section class="fd-dialog__body" id="dialog-description-8">
|
|
528
|
+
<strong>Status:</strong> Connecting 127.0.0.1
|
|
529
|
+
<div class="fd-dialog__loader fd-busy-indicator--l" aria-hidden="false" aria-label="Loading">
|
|
530
|
+
<div class="fd-busy-indicator--circle-0"></div>
|
|
531
|
+
<div class="fd-busy-indicator--circle-1"></div>
|
|
532
|
+
<div class="fd-busy-indicator--circle-2"></div>
|
|
533
|
+
</div>
|
|
534
|
+
</section>
|
|
535
|
+
|
|
536
|
+
<footer class="fd-dialog__footer fd-bar fd-bar--footer">
|
|
537
|
+
<div class="fd-bar__right">
|
|
538
|
+
<div class="fd-bar__element">
|
|
539
|
+
<button class="fd-dialog__decisive-button fd-button fd-button--transparent">Cancel</button>
|
|
540
|
+
</div>
|
|
541
|
+
</div>
|
|
542
|
+
</footer>
|
|
543
|
+
</div>
|
|
544
|
+
</div>
|
|
545
|
+
```
|
|
546
|
+
|
|
547
|
+
### HorizontalForm
|
|
548
|
+
|
|
549
|
+
Horizontal Form displays all the components aligned horizontally. It is created by positioning the `fd-form-label` class and the `fd-input` class in the same row.
|
|
550
|
+
|
|
551
|
+
```html
|
|
552
|
+
<div class="fd-dialog-docs-static fd-dialog fd-dialog--active">
|
|
553
|
+
<div
|
|
554
|
+
class="fd-dialog__content fd-dialog__content--s"
|
|
555
|
+
role="dialog"
|
|
556
|
+
aria-modal="true"
|
|
557
|
+
aria-labelledby="dialog-title-2"
|
|
558
|
+
>
|
|
559
|
+
|
|
560
|
+
<header class="fd-dialog__header fd-bar fd-bar--header">
|
|
561
|
+
<div class="fd-bar__left">
|
|
562
|
+
<div class="fd-bar__element">
|
|
563
|
+
<h2 class="fd-title fd-title--h5" id="dialog-title-22">
|
|
564
|
+
Form Dialog
|
|
565
|
+
</h2>
|
|
566
|
+
</div>
|
|
567
|
+
</div>
|
|
568
|
+
</header>
|
|
569
|
+
|
|
570
|
+
<section class="fd-dialog__body">
|
|
571
|
+
<div class="fd-container fd-form-layout-grid-container fd-form-group">
|
|
572
|
+
<div class="fd-row fd-form-item">
|
|
573
|
+
<div class="fd-col fd-col-md--2 fd-col-lg--4">
|
|
574
|
+
<label class="fd-form-label" for="input-222-name">Name:</label>
|
|
575
|
+
</div>
|
|
576
|
+
<div class="fd-col fd-col-md--10 fd-col-lg--8">
|
|
577
|
+
<input class="fd-input" type="text" id="input-222-name" placeholder="Enter First and Last Name" value="Amelia Perry">
|
|
578
|
+
</div>
|
|
579
|
+
</div>
|
|
580
|
+
<div class="fd-row fd-form-item">
|
|
581
|
+
<div class="fd-col fd-col-md--2 fd-col-lg--4">
|
|
582
|
+
<label class="fd-form-label fd-form-label--required" for="input-233-street">Street/No.: </label>
|
|
583
|
+
</div>
|
|
584
|
+
<div class="fd-col fd-col-md--10 fd-col-lg--8">
|
|
585
|
+
<div class="fd-row">
|
|
586
|
+
<div class="fd-col fd-col--4">
|
|
587
|
+
<input class="fd-input" type="text" id="input-233-street" placeholder="Enter address" value="Myrtle St.">
|
|
588
|
+
</div>
|
|
589
|
+
<div class="fd-col fd-col--8">
|
|
590
|
+
<input class="fd-input" type="text" id="input-233-number" aria-label="Street Number" placeholder="Enter Street Number" value="495">
|
|
591
|
+
</div>
|
|
592
|
+
</div>
|
|
593
|
+
</div>
|
|
594
|
+
</div>
|
|
595
|
+
|
|
596
|
+
<div class="fd-row fd-form-item">
|
|
597
|
+
<div class="fd-col fd-col-md--2 fd-col-lg--4">
|
|
598
|
+
<label class="fd-form-label fd-form-label--required" for="input-233-zip">ZIP Code/City: </label>
|
|
599
|
+
</div>
|
|
600
|
+
<div class="fd-col fd-col-md--10 fd-col-lg--8">
|
|
601
|
+
<div class="fd-row">
|
|
602
|
+
<div class="fd-col fd-col--8">
|
|
603
|
+
<input class="fd-input" type="text" id="input-233-zip" placeholder="Enter ZIP Code" value="43823">
|
|
604
|
+
</div>
|
|
605
|
+
<div class="fd-col fd-col--4">
|
|
606
|
+
<input class="fd-input" type="text" id="input-233-city" placeholder="Enter City" aria-label="City" value="Downtown">
|
|
607
|
+
</div>
|
|
608
|
+
</div>
|
|
609
|
+
</div>
|
|
610
|
+
</div>
|
|
611
|
+
|
|
612
|
+
<div class="fd-row fd-form-item">
|
|
613
|
+
<div class="fd-col fd-col-md--2 fd-col-lg--4">
|
|
614
|
+
<label class="fd-form-label" for="text-243-name">Bio: </label>
|
|
615
|
+
</div>
|
|
616
|
+
<div class="fd-col fd-col-md--10 fd-col-lg--8">
|
|
617
|
+
<textarea class="fd-textarea" id="text-243-name" >Disabled textarea</textarea>
|
|
618
|
+
</div>
|
|
619
|
+
</div>
|
|
620
|
+
|
|
621
|
+
<div class="fd-row fd-form-item">
|
|
622
|
+
<div class="fd-col fd-col-md--2 fd-col-lg--4">
|
|
623
|
+
<label class="fd-form-label" for="input-2-country">Country:</label>
|
|
624
|
+
</div>
|
|
625
|
+
<div class="fd-col fd-col-md--10 fd-col-lg--8">
|
|
626
|
+
<div class="fd-popover" style="width:100%">
|
|
627
|
+
<div class="fd-popover__control">
|
|
628
|
+
<div class="fd-select">
|
|
629
|
+
<div aria-controls="h031XCM509" aria-expanded="false" aria-haspopup="listbox" class="fd-select__control" aria-label="Country" tabindex="0">
|
|
630
|
+
<span class="fd-select__text-content">US</span>
|
|
631
|
+
<span class="fd-button fd-button--transparent fd-select__button">
|
|
632
|
+
<i class="sap-icon--slim-arrow-down"></i>
|
|
633
|
+
</span>
|
|
634
|
+
</div>
|
|
635
|
+
</div>
|
|
636
|
+
</div>
|
|
637
|
+
</div>
|
|
638
|
+
</div>
|
|
639
|
+
</div>
|
|
640
|
+
</div>
|
|
641
|
+
</section>
|
|
642
|
+
|
|
643
|
+
<footer class="fd-dialog__footer fd-bar fd-bar--footer">
|
|
644
|
+
<div class="fd-bar__right">
|
|
645
|
+
<div class="fd-bar__element">
|
|
646
|
+
<button class="fd-dialog__decisive-button fd-button fd-button--emphasized">Save</button>
|
|
647
|
+
</div>
|
|
648
|
+
<div class="fd-bar__element">
|
|
649
|
+
<button class="fd-dialog__decisive-button fd-button fd-button--transparent">Cancel</button>
|
|
650
|
+
</div>
|
|
651
|
+
</div>
|
|
652
|
+
</footer>
|
|
653
|
+
</div>
|
|
654
|
+
</div>
|
|
655
|
+
```
|
|
656
|
+
|
|
657
|
+
### VerticalForm
|
|
658
|
+
|
|
659
|
+
Verical Form displays all the components aligned vertically. It is created by positioning the `fd-form-label` class above the `fd-input` class in seperate rows.
|
|
660
|
+
|
|
661
|
+
```html
|
|
662
|
+
<div class="fd-dialog-docs-static fd-dialog fd-dialog--active">
|
|
663
|
+
<div
|
|
664
|
+
class="fd-dialog__content fd-dialog__content--s"
|
|
665
|
+
role="dialog"
|
|
666
|
+
aria-modal="true"
|
|
667
|
+
aria-labelledby="dialog-title-2">
|
|
668
|
+
|
|
669
|
+
<header class="fd-dialog__header fd-bar fd-bar--header">
|
|
670
|
+
<div class="fd-bar__left">
|
|
671
|
+
<div class="fd-bar__element">
|
|
672
|
+
<h2 class="fd-title fd-title--h5" id="dialog-title-223">
|
|
673
|
+
Form Dialog
|
|
674
|
+
</h2>
|
|
675
|
+
</div>
|
|
676
|
+
</div>
|
|
677
|
+
</header>
|
|
678
|
+
|
|
679
|
+
<section class="fd-dialog__body">
|
|
680
|
+
<div class="fd-container fd-form-layout-grid-container fd-form-layout-grid-container--vertical fd-form-group">
|
|
681
|
+
<div class="fd-row fd-form-item">
|
|
682
|
+
<div class="fd-col">
|
|
683
|
+
<label class="fd-form-label" for="input-2224-name">Name:</label>
|
|
684
|
+
</div>
|
|
685
|
+
<div class="fd-col">
|
|
686
|
+
<input class="fd-input" type="text" id="input-2224-name" placeholder="Enter First and Last Name" value="Amelia Perry">
|
|
687
|
+
</div>
|
|
688
|
+
</div>
|
|
689
|
+
<div class="fd-row fd-form-item">
|
|
690
|
+
<div class="fd-col">
|
|
691
|
+
<label class="fd-form-label fd-form-label--required" for="input-2334-street">Street/No.: </label>
|
|
692
|
+
</div>
|
|
693
|
+
<div class="fd-col">
|
|
694
|
+
<div class="fd-row">
|
|
695
|
+
<div class="fd-col fd-col--4">
|
|
696
|
+
<input class="fd-input" type="text" id="input-2334-street" placeholder="Enter address" value="Myrtle St.">
|
|
697
|
+
</div>
|
|
698
|
+
<div class="fd-col fd-col--8">
|
|
699
|
+
<input class="fd-input" type="text" id="input-2334-number" aria-label="Street Number" placeholder="Enter Street Number" value="495">
|
|
700
|
+
</div>
|
|
701
|
+
</div>
|
|
702
|
+
</div>
|
|
703
|
+
</div>
|
|
704
|
+
|
|
705
|
+
<div class="fd-row fd-form-item">
|
|
706
|
+
<div class="fd-col">
|
|
707
|
+
<label class="fd-form-label fd-form-label--required" for="input-2334-zip">ZIP Code/City: </label>
|
|
708
|
+
</div>
|
|
709
|
+
<div class="fd-col">
|
|
710
|
+
<div class="fd-row">
|
|
711
|
+
<div class="fd-col fd-col--8">
|
|
712
|
+
<input class="fd-input" type="text" id="input-2334-zip" placeholder="Enter ZIP Code" value="43823">
|
|
713
|
+
</div>
|
|
714
|
+
<div class="fd-col fd-col--4">
|
|
715
|
+
<input class="fd-input" type="text" id="input-2334-city" placeholder="Enter City" aria-label="City" value="Downtown">
|
|
716
|
+
</div>
|
|
717
|
+
</div>
|
|
718
|
+
</div>
|
|
719
|
+
</div>
|
|
720
|
+
|
|
721
|
+
<div class="fd-row fd-form-item">
|
|
722
|
+
<div class="fd-col">
|
|
723
|
+
<label class="fd-form-label" for="text-2434-name">Bio: </label>
|
|
724
|
+
</div>
|
|
725
|
+
<div class="fd-col">
|
|
726
|
+
<textarea class="fd-textarea" id="text-2434-name" >Disabled textarea</textarea>
|
|
727
|
+
</div>
|
|
728
|
+
</div>
|
|
729
|
+
|
|
730
|
+
<div class="fd-row fd-form-item">
|
|
731
|
+
<div class="fd-col">
|
|
732
|
+
<label class="fd-form-label" for="input-2-country">Country:</label>
|
|
733
|
+
</div>
|
|
734
|
+
<div class="fd-col">
|
|
735
|
+
<div class="fd-popover" style="width:100%">
|
|
736
|
+
<div class="fd-popover__control">
|
|
737
|
+
<div class="fd-select">
|
|
738
|
+
<div aria-controls="h031XCM509" aria-expanded="false" aria-haspopup="listbox" class="fd-select__control" aria-label="Country" tabindex="0">
|
|
739
|
+
<span class="fd-select__text-content">US</span>
|
|
740
|
+
<span class="fd-button fd-button--transparent fd-select__button">
|
|
741
|
+
<i class="sap-icon--slim-arrow-down"></i>
|
|
742
|
+
</span>
|
|
743
|
+
</div>
|
|
744
|
+
</div>
|
|
745
|
+
</div>
|
|
746
|
+
</div>
|
|
747
|
+
</div>
|
|
748
|
+
</div>
|
|
749
|
+
</div>
|
|
750
|
+
</section>
|
|
751
|
+
|
|
752
|
+
<footer class="fd-dialog__footer fd-bar fd-bar--footer">
|
|
753
|
+
<div class="fd-bar__right">
|
|
754
|
+
<div class="fd-bar__element">
|
|
755
|
+
<button class="fd-dialog__decisive-button fd-button fd-button--emphasized">Save</button>
|
|
756
|
+
</div>
|
|
757
|
+
<div class="fd-bar__element">
|
|
758
|
+
<button class="fd-dialog__decisive-button fd-button fd-button--transparent">Cancel</button>
|
|
759
|
+
</div>
|
|
760
|
+
</div>
|
|
761
|
+
</footer>
|
|
762
|
+
</div>
|
|
763
|
+
</div>
|
|
764
|
+
```
|
|
765
|
+
|
|
766
|
+
### TabletAndHybridDeviceSpecification
|
|
767
|
+
|
|
768
|
+
To properly support resizing for all input methods, the optional resize handle is context-dependent. Depending on the device, a full screen button is also shown for touch interaction.
|
|
769
|
+
|
|
770
|
+
```html
|
|
771
|
+
<h3>Tablet without mouse attached</h3>
|
|
772
|
+
<div>Full Screen Button: visible (<code>sap-icon--full-screen</code>)</div>
|
|
773
|
+
<div>Resize Handle: not visible</div>
|
|
774
|
+
<br>
|
|
775
|
+
<div class="fd-dialog-docs-static fd-dialog fd-dialog--active">
|
|
776
|
+
<div
|
|
777
|
+
class="fd-dialog__content fd-dialog__content--s"
|
|
778
|
+
role="dialog"
|
|
779
|
+
aria-modal="true"
|
|
780
|
+
aria-labelledby="dialog-title-12"
|
|
781
|
+
aria-describedby="dialog-description-12"
|
|
782
|
+
>
|
|
783
|
+
|
|
784
|
+
<header class="fd-dialog__header fd-bar fd-bar--header">
|
|
785
|
+
<div class="fd-bar__left">
|
|
786
|
+
<div class="fd-bar__element">
|
|
787
|
+
<h2 class="fd-title fd-title--h5" id="dialog-title-12">
|
|
788
|
+
Lorem ipsum
|
|
789
|
+
</h2>
|
|
790
|
+
</div>
|
|
791
|
+
</div>
|
|
792
|
+
<div class="fd-bar__right">
|
|
793
|
+
<div class="fd-bar__element">
|
|
794
|
+
<button aria-label="Expand to full screen" class="fd-button fd-button--transparent">
|
|
795
|
+
<i class="sap-icon--full-screen"></i>
|
|
796
|
+
</button>
|
|
797
|
+
</div>
|
|
798
|
+
</div>
|
|
799
|
+
</header>
|
|
800
|
+
|
|
801
|
+
<section class="fd-dialog__body" id="dialog-description-12">
|
|
802
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt
|
|
803
|
+
</section>
|
|
804
|
+
|
|
805
|
+
<footer class="fd-dialog__footer fd-bar fd-bar--footer">
|
|
806
|
+
<div class="fd-bar__right">
|
|
807
|
+
<div class="fd-bar__element">
|
|
808
|
+
<button class="fd-dialog__decisive-button fd-button fd-button--emphasized">Save</button>
|
|
809
|
+
</div>
|
|
810
|
+
<div class="fd-bar__element">
|
|
811
|
+
<button class="fd-dialog__decisive-button fd-button fd-button--transparent">Cancel</button>
|
|
812
|
+
</div>
|
|
813
|
+
</div>
|
|
814
|
+
</footer>
|
|
815
|
+
</div>
|
|
816
|
+
</div>
|
|
817
|
+
|
|
818
|
+
<br><br>
|
|
819
|
+
<h3>Tablet with mouse attached</h3>
|
|
820
|
+
<div>Full Screen Button: visible (<code>sap-icon--full-screen</code>)</div>
|
|
821
|
+
<div>Resize Handle: visible</div>
|
|
822
|
+
<br>
|
|
823
|
+
<section class="fd-dialog-docs-static fd-dialog fd-dialog--active">
|
|
824
|
+
<div class="fd-dialog__content fd-dialog__content--s" role="dialog" aria-modal="true" aria-labelledby="dialog-title-6">
|
|
825
|
+
<span class="fd-dialog__resize-handle"></span>
|
|
826
|
+
<header class="fd-dialog__header fd-bar fd-bar--header">
|
|
827
|
+
<div class="fd-bar__left">
|
|
828
|
+
<div class="fd-bar__element">
|
|
829
|
+
<h2 class="fd-title fd-title--h5" id="dialog-title-6">
|
|
830
|
+
Lorem ipsum
|
|
831
|
+
</h2>
|
|
832
|
+
</div>
|
|
833
|
+
</div>
|
|
834
|
+
<div class="fd-bar__right">
|
|
835
|
+
<div class="fd-bar__element">
|
|
836
|
+
<button aria-label="Expand to full screen" class="fd-button fd-button--transparent">
|
|
837
|
+
<i class="sap-icon--full-screen"></i>
|
|
838
|
+
</button>
|
|
839
|
+
</div>
|
|
840
|
+
</div>
|
|
841
|
+
</header>
|
|
842
|
+
<div class="fd-dialog__body">
|
|
843
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt
|
|
844
|
+
</div>
|
|
845
|
+
<footer class="fd-dialog__footer fd-bar fd-bar--footer">
|
|
846
|
+
<div class="fd-bar__right">
|
|
847
|
+
<div class="fd-bar__element">
|
|
848
|
+
<button class="fd-dialog__decisive-button fd-button fd-button--emphasized">Save</button>
|
|
849
|
+
</div>
|
|
850
|
+
<div class="fd-bar__element">
|
|
851
|
+
<button class="fd-dialog__decisive-button fd-button fd-button--transparent">Cancel</button>
|
|
852
|
+
</div>
|
|
853
|
+
</div>
|
|
854
|
+
</footer>
|
|
855
|
+
</div>
|
|
856
|
+
</section>
|
|
857
|
+
|
|
858
|
+
<br><br>
|
|
859
|
+
<h3>Hybrid device</h3>
|
|
860
|
+
<div>Full Screen Button: visible (<code>sap-icon--full-screen</code>)</div>
|
|
861
|
+
<div>Resize Handle: visible</div>
|
|
862
|
+
<br>
|
|
863
|
+
<section class="fd-dialog-docs-static fd-dialog fd-dialog--active">
|
|
864
|
+
<div class="fd-dialog__content fd-dialog__content--s" role="dialog" aria-modal="true" aria-labelledby="dialog-title-6">
|
|
865
|
+
<span class="fd-dialog__resize-handle"></span>
|
|
866
|
+
<header class="fd-dialog__header fd-bar fd-bar--header fd-bar--compact">
|
|
867
|
+
<div class="fd-bar__left">
|
|
868
|
+
<div class="fd-bar__element">
|
|
869
|
+
<h2 class="fd-title fd-title--h5" id="dialog-title-6">
|
|
870
|
+
Lorem ipsum
|
|
871
|
+
</h2>
|
|
872
|
+
</div>
|
|
873
|
+
</div>
|
|
874
|
+
<div class="fd-bar__right">
|
|
875
|
+
<div class="fd-bar__element">
|
|
876
|
+
<button aria-label="Expand to full screen" class="fd-button fd-button--transparent">
|
|
877
|
+
<i class="sap-icon--full-screen"></i>
|
|
878
|
+
</button>
|
|
879
|
+
</div>
|
|
880
|
+
</div>
|
|
881
|
+
</header>
|
|
882
|
+
<div class="fd-dialog__body">
|
|
883
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt
|
|
884
|
+
</div>
|
|
885
|
+
<footer class="fd-dialog__footer fd-bar fd-bar--compact fd-bar--footer">
|
|
886
|
+
<div class="fd-bar__right">
|
|
887
|
+
<div class="fd-bar__element">
|
|
888
|
+
<button class="fd-dialog__decisive-button fd-button fd-button--emphasized">Save</button>
|
|
889
|
+
</div>
|
|
890
|
+
<div class="fd-bar__element">
|
|
891
|
+
<button class="fd-dialog__decisive-button fd-button fd-button--transparent">Cancel</button>
|
|
892
|
+
</div>
|
|
893
|
+
</div>
|
|
894
|
+
</footer>
|
|
895
|
+
</div>
|
|
896
|
+
</section>
|
|
897
|
+
|
|
898
|
+
<br><br>
|
|
899
|
+
<h3>Full screen</h3>
|
|
900
|
+
<div>Full Screen Button: visible (<code>sap-icon--exitfullscreen</code>)</div>
|
|
901
|
+
<div>Resize Handle: not visible</div>
|
|
902
|
+
<br>
|
|
903
|
+
<section class="fd-dialog-docs-static fd-dialog fd-dialog--active">
|
|
904
|
+
<div class="fd-dialog__content fd-dialog__content--s fd-dialog__content--mobile" role="dialog" aria-modal="true" aria-labelledby="dialog-title-6">
|
|
905
|
+
<header class="fd-dialog__header fd-bar fd-bar--header">
|
|
906
|
+
<div class="fd-bar__left">
|
|
907
|
+
<div class="fd-bar__element">
|
|
908
|
+
<h2 class="fd-title fd-title--h5" id="dialog-title-6">
|
|
909
|
+
Lorem ipsum
|
|
910
|
+
</h2>
|
|
911
|
+
</div>
|
|
912
|
+
</div>
|
|
913
|
+
<div class="fd-bar__right">
|
|
914
|
+
<div class="fd-bar__element">
|
|
915
|
+
<button aria-label="Expand to full screen" class="fd-button fd-button--transparent">
|
|
916
|
+
<i class="sap-icon--exitfullscreen"></i>
|
|
917
|
+
</button>
|
|
918
|
+
</div>
|
|
919
|
+
</div>
|
|
920
|
+
</header>
|
|
921
|
+
<div class="fd-dialog__body">
|
|
922
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt
|
|
923
|
+
</div>
|
|
924
|
+
<footer class="fd-dialog__footer fd-bar fd-bar--footer">
|
|
925
|
+
<div class="fd-bar__right">
|
|
926
|
+
<div class="fd-bar__element">
|
|
927
|
+
<button class="fd-dialog__decisive-button fd-button fd-button--emphasized">Save</button>
|
|
928
|
+
</div>
|
|
929
|
+
<div class="fd-bar__element">
|
|
930
|
+
<button class="fd-dialog__decisive-button fd-button fd-button--transparent">Cancel</button>
|
|
931
|
+
</div>
|
|
932
|
+
</div>
|
|
933
|
+
</footer>
|
|
934
|
+
</div>
|
|
935
|
+
</section>
|
|
936
|
+
```
|
|
937
|
+
|
|
938
|
+
## Accessibility
|
|
939
|
+
|
|
940
|
+
- Use semantic HTML elements where appropriate
|
|
941
|
+
- Include proper ARIA attributes for interactive elements
|
|
942
|
+
- Ensure keyboard navigation support
|
|
943
|
+
- Provide adequate color contrast
|
|
944
|
+
|
|
945
|
+
## Source
|
|
946
|
+
|
|
947
|
+
This documentation was automatically generated from: `packages/styles/stories/Components/dialog/dialog.stories.js`
|
|
948
|
+
|
|
949
|
+
For the latest updates and interactive examples, see [Storybook](https://sap.github.io/fundamental-styles/).
|