@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,292 @@
|
|
|
1
|
+
---
|
|
2
|
+
component: fd-button
|
|
3
|
+
title: Components/Action Sheet
|
|
4
|
+
category: Components
|
|
5
|
+
selector: fd-button
|
|
6
|
+
cssFile: button.css
|
|
7
|
+
sourcePath: packages/styles/stories/Components/action-sheet/action-sheet.stories.js
|
|
8
|
+
tags: []
|
|
9
|
+
dependencies: ["action-sheet","avatar","bar","button","icon","popover"]
|
|
10
|
+
relatedComponents: ["action-sheet","avatar","bar","button","icon","popover"]
|
|
11
|
+
stability: stable
|
|
12
|
+
generatedAt: 2026-06-09T18:29:01.527Z
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
# Components/Action Sheet
|
|
16
|
+
|
|
17
|
+
An action sheet consists of a list of options a user can select from to complete an action. Actions can be
|
|
18
|
+
clustered if there is not enough space on the screen.
|
|
19
|
+
|
|
20
|
+
## Usage
|
|
21
|
+
|
|
22
|
+
**Use the action sheet if:**
|
|
23
|
+
|
|
24
|
+
- You need an option that provides more than one action.
|
|
25
|
+
- It is really important that the user stays in context on a phone.
|
|
26
|
+
- You only have a small number of actions.
|
|
27
|
+
|
|
28
|
+
**Do not use the action sheet if:**
|
|
29
|
+
|
|
30
|
+
- The menu provides only one option. In this case, consider using a **Button** instead.
|
|
31
|
+
- You need to show a hierarchical menu. In this case, use the menu button instead.
|
|
32
|
+
- Your users would benefit more from a split button, which offers an easily-accessible default action, with the option to include additional actions.
|
|
33
|
+
|
|
34
|
+
**Note:** The action sheet should be used in compact mode if targeting desktop users.
|
|
35
|
+
|
|
36
|
+
## When Not To Use
|
|
37
|
+
|
|
38
|
+
- The menu provides only one option. In this case, consider using a **Button** instead.
|
|
39
|
+
- You need to show a hierarchical menu. In this case, use the menu button instead.
|
|
40
|
+
- Your users would benefit more from a split button, which offers an easily-accessible default action, with the option to include additional actions.
|
|
41
|
+
|
|
42
|
+
**Note:** The action sheet should be used in compact mode if targeting desktop users.
|
|
43
|
+
|
|
44
|
+
## Dependencies
|
|
45
|
+
|
|
46
|
+
This component depends on the following CSS files:
|
|
47
|
+
|
|
48
|
+
- `action-sheet.css`
|
|
49
|
+
- `avatar.css`
|
|
50
|
+
- `bar.css`
|
|
51
|
+
- `button.css`
|
|
52
|
+
- `icon.css`
|
|
53
|
+
- `popover.css`
|
|
54
|
+
|
|
55
|
+
## Installation
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
npm install fundamental-styles
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
```html
|
|
62
|
+
<!-- Include theme -->
|
|
63
|
+
<link href="node_modules/fundamental-styles/dist/theming/sap_horizon.css" rel="stylesheet">
|
|
64
|
+
|
|
65
|
+
<!-- Include component CSS -->
|
|
66
|
+
<link href="node_modules/fundamental-styles/dist/button.css" rel="stylesheet">
|
|
67
|
+
|
|
68
|
+
<!-- Include dependencies -->
|
|
69
|
+
<link href="node_modules/fundamental-styles/dist/action-sheet.css" rel="stylesheet">
|
|
70
|
+
<link href="node_modules/fundamental-styles/dist/avatar.css" rel="stylesheet">
|
|
71
|
+
<link href="node_modules/fundamental-styles/dist/bar.css" rel="stylesheet">
|
|
72
|
+
<link href="node_modules/fundamental-styles/dist/button.css" rel="stylesheet">
|
|
73
|
+
<link href="node_modules/fundamental-styles/dist/icon.css" rel="stylesheet">
|
|
74
|
+
<link href="node_modules/fundamental-styles/dist/popover.css" rel="stylesheet">
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## Basic Usage
|
|
78
|
+
|
|
79
|
+
```html
|
|
80
|
+
<div class="fd-popover">
|
|
81
|
+
<div class="fd-popover__control">
|
|
82
|
+
<button class="fd-button fd-button--transparent"
|
|
83
|
+
aria-label="More Options" aria-controls="actionSheetTablet" aria-expanded="true"
|
|
84
|
+
aria-haspopup="true" onclick="onPopoverClick('actionSheetTablet');">
|
|
85
|
+
<i class="sap-icon--settings"></i>
|
|
86
|
+
</button>
|
|
87
|
+
</div>
|
|
88
|
+
<div class="fd-popover__body" aria-hidden="false" id="actionSheetTablet">
|
|
89
|
+
<ul class="fd-action-sheet" role="list" aria-label="List of contextual options">
|
|
90
|
+
<li class="fd-action-sheet__item" role="listitem">
|
|
91
|
+
<button class="fd-button fd-button--full-width fd-button--transparent fd-button--text-alignment-left">
|
|
92
|
+
<i class="sap-icon--attachment"></i>
|
|
93
|
+
<span class="fd-button__text">Upload file</span>
|
|
94
|
+
</button>
|
|
95
|
+
</li>
|
|
96
|
+
<li class="fd-action-sheet__item" role="listitem">
|
|
97
|
+
<button class="fd-button fd-button--full-width fd-button--transparent fd-button--text-alignment-left">
|
|
98
|
+
<i class="sap-icon--add"></i>
|
|
99
|
+
<span class="fd-button__text">Assign user</span>
|
|
100
|
+
</button>
|
|
101
|
+
</li>
|
|
102
|
+
<li class="fd-action-sheet__item" role="listitem">
|
|
103
|
+
<button class="fd-button fd-button--full-width fd-button--transparent fd-button--text-alignment-left">
|
|
104
|
+
<i class="sap-icon--print"></i>
|
|
105
|
+
<span class="fd-button__text">Print</span>
|
|
106
|
+
</button>
|
|
107
|
+
</li>
|
|
108
|
+
<li class="fd-action-sheet__item" role="listitem">
|
|
109
|
+
<button class="fd-button fd-button--full-width fd-button--transparent fd-button--text-alignment-left">
|
|
110
|
+
<i class="sap-icon--download"></i>
|
|
111
|
+
<span class="fd-button__text">Download</span>
|
|
112
|
+
</button>
|
|
113
|
+
</li>
|
|
114
|
+
<li class="fd-action-sheet__item" role="listitem">
|
|
115
|
+
<button class="fd-button fd-button--full-width fd-button--transparent fd-button--text-alignment-left"
|
|
116
|
+
onclick="onPopoverClick('actionSheetTablet');">
|
|
117
|
+
<span class="fd-button__text">Decide Later</span>
|
|
118
|
+
</button>
|
|
119
|
+
</li>
|
|
120
|
+
</ul>
|
|
121
|
+
</div>
|
|
122
|
+
</div>
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
## Modifiers
|
|
126
|
+
|
|
127
|
+
| Class | Description |
|
|
128
|
+
|-------|-------------|
|
|
129
|
+
| `fd-button--full-width` | Full-width button modifier. Makes the button expand to fill the full width of its container. Use for prominent actions in narrow containers or mobile layouts. |
|
|
130
|
+
| `fd-button--negative` | Negative button - Destructive or reject actions. Used for negative semantic actions like "Delete", "Reject", or "Cancel". Should always be accompanied by text to clarify the destructive action. |
|
|
131
|
+
| `fd-button--text-alignment-left` | Style variant |
|
|
132
|
+
| `fd-button--transparent` | Transparent button - Secondary actions in toolbars. Used for negative path actions within headers/footers, and secondary toolbar actions. Has minimal visual weight with transparent background by default. |
|
|
133
|
+
|
|
134
|
+
## BEM Elements
|
|
135
|
+
|
|
136
|
+
This component uses the following BEM elements:
|
|
137
|
+
|
|
138
|
+
- `fd-button__text`
|
|
139
|
+
|
|
140
|
+
## Related Components
|
|
141
|
+
|
|
142
|
+
This component works with or depends on:
|
|
143
|
+
|
|
144
|
+
- `action-sheet`
|
|
145
|
+
- `avatar`
|
|
146
|
+
- `bar`
|
|
147
|
+
- `button`
|
|
148
|
+
- `icon`
|
|
149
|
+
- `popover`
|
|
150
|
+
|
|
151
|
+
## Design Tokens
|
|
152
|
+
|
|
153
|
+
Key CSS variables used by this component:
|
|
154
|
+
|
|
155
|
+
- `--attention`
|
|
156
|
+
- `--decisive`
|
|
157
|
+
- `--fdButton_Badge_Height`
|
|
158
|
+
- `--fdButton_Badge_Margin`
|
|
159
|
+
- `--fdButton_Badge_Margin_Inline_Start`
|
|
160
|
+
- `--fdButton_Badge_Offset`
|
|
161
|
+
- `--fdButton_Badge_Padding_Inline`
|
|
162
|
+
- `--fdButton_Badge_Position`
|
|
163
|
+
- `--fdButton_Badge_Position_Attention`
|
|
164
|
+
- `--fdButton_Badge_Size_Attention`
|
|
165
|
+
- `--fdButton_Badge_Width`
|
|
166
|
+
- `--fdButton_Clickable_Height`
|
|
167
|
+
- `--fdButton_Compact_Height`
|
|
168
|
+
- `--fdButton_Font_Family`
|
|
169
|
+
- `--fdButton_Height`
|
|
170
|
+
|
|
171
|
+
*...and 5 more*
|
|
172
|
+
|
|
173
|
+
## Examples
|
|
174
|
+
|
|
175
|
+
### Default
|
|
176
|
+
|
|
177
|
+
```html
|
|
178
|
+
<div class="fd-popover">
|
|
179
|
+
<div class="fd-popover__control">
|
|
180
|
+
<button class="fd-button fd-button--transparent"
|
|
181
|
+
aria-label="More Options" aria-controls="actionSheetTablet" aria-expanded="true"
|
|
182
|
+
aria-haspopup="true" onclick="onPopoverClick('actionSheetTablet');">
|
|
183
|
+
<i class="sap-icon--settings"></i>
|
|
184
|
+
</button>
|
|
185
|
+
</div>
|
|
186
|
+
<div class="fd-popover__body" aria-hidden="false" id="actionSheetTablet">
|
|
187
|
+
<ul class="fd-action-sheet" role="list" aria-label="List of contextual options">
|
|
188
|
+
<li class="fd-action-sheet__item" role="listitem">
|
|
189
|
+
<button class="fd-button fd-button--full-width fd-button--transparent fd-button--text-alignment-left">
|
|
190
|
+
<i class="sap-icon--attachment"></i>
|
|
191
|
+
<span class="fd-button__text">Upload file</span>
|
|
192
|
+
</button>
|
|
193
|
+
</li>
|
|
194
|
+
<li class="fd-action-sheet__item" role="listitem">
|
|
195
|
+
<button class="fd-button fd-button--full-width fd-button--transparent fd-button--text-alignment-left">
|
|
196
|
+
<i class="sap-icon--add"></i>
|
|
197
|
+
<span class="fd-button__text">Assign user</span>
|
|
198
|
+
</button>
|
|
199
|
+
</li>
|
|
200
|
+
<li class="fd-action-sheet__item" role="listitem">
|
|
201
|
+
<button class="fd-button fd-button--full-width fd-button--transparent fd-button--text-alignment-left">
|
|
202
|
+
<i class="sap-icon--print"></i>
|
|
203
|
+
<span class="fd-button__text">Print</span>
|
|
204
|
+
</button>
|
|
205
|
+
</li>
|
|
206
|
+
<li class="fd-action-sheet__item" role="listitem">
|
|
207
|
+
<button class="fd-button fd-button--full-width fd-button--transparent fd-button--text-alignment-left">
|
|
208
|
+
<i class="sap-icon--download"></i>
|
|
209
|
+
<span class="fd-button__text">Download</span>
|
|
210
|
+
</button>
|
|
211
|
+
</li>
|
|
212
|
+
<li class="fd-action-sheet__item" role="listitem">
|
|
213
|
+
<button class="fd-button fd-button--full-width fd-button--transparent fd-button--text-alignment-left"
|
|
214
|
+
onclick="onPopoverClick('actionSheetTablet');">
|
|
215
|
+
<span class="fd-button__text">Decide Later</span>
|
|
216
|
+
</button>
|
|
217
|
+
</li>
|
|
218
|
+
</ul>
|
|
219
|
+
</div>
|
|
220
|
+
</div>
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
### Mobile
|
|
224
|
+
|
|
225
|
+
```html
|
|
226
|
+
<button class="fd-button fd-button--transparent"
|
|
227
|
+
aria-label="More Options" aria-controls="actionSheetPhone" aria-expanded="true"
|
|
228
|
+
aria-haspopup="true" onclick="toggleClass('actionSheetPhone', 'fd-action-sheet__wrapper--active');">
|
|
229
|
+
<i class="sap-icon--settings"></i>
|
|
230
|
+
</button>
|
|
231
|
+
<div class="fd-action-sheet__wrapper fd-action-sheet__wrapper--active" id="actionSheetPhone">
|
|
232
|
+
<div class="fd-bar fd-action-sheet__bar" role="toolbar" aria-label="Bar">
|
|
233
|
+
<div class="fd-bar__left">
|
|
234
|
+
<div class="fd-bar__element">
|
|
235
|
+
<h6 class="fd-action-sheet__title">Control Title</h6>
|
|
236
|
+
</div>
|
|
237
|
+
</div>
|
|
238
|
+
|
|
239
|
+
<ul class="fd-action-sheet fd-action-sheet--mobile" role="list" aria-label="List of contextual options">
|
|
240
|
+
<li class="fd-action-sheet__item" role="listitem">
|
|
241
|
+
<button class="fd-button fd-button--full-width fd-button--transparent fd-button--text-alignment-left">
|
|
242
|
+
<i class="sap-icon--attachment"></i>
|
|
243
|
+
<span class="fd-button__text">Upload file</span>
|
|
244
|
+
</button>
|
|
245
|
+
</li>
|
|
246
|
+
<li class="fd-action-sheet__item" role="listitem">
|
|
247
|
+
<button class="fd-button fd-button--full-width fd-button--transparent fd-button--text-alignment-left">
|
|
248
|
+
<i class="sap-icon--add"></i>
|
|
249
|
+
<span class="fd-button__text">Assign user</span>
|
|
250
|
+
</button>
|
|
251
|
+
</li>
|
|
252
|
+
<li class="fd-action-sheet__item" role="listitem">
|
|
253
|
+
<button class="fd-button fd-button--full-width fd-button--transparent fd-button--text-alignment-left">
|
|
254
|
+
<i class="sap-icon--print"></i>
|
|
255
|
+
<span class="fd-button__text">Print</span>
|
|
256
|
+
</button>
|
|
257
|
+
</li>
|
|
258
|
+
<li class="fd-action-sheet__item" role="listitem">
|
|
259
|
+
<button class="fd-button fd-button--full-width fd-button--transparent fd-button--text-alignment-left">
|
|
260
|
+
<i class="sap-icon--download"></i>
|
|
261
|
+
<span class="fd-button__text">Download</span>
|
|
262
|
+
</button>
|
|
263
|
+
</li>
|
|
264
|
+
<li class="fd-action-sheet__item" role="listitem">
|
|
265
|
+
<button class="fd-button fd-button--full-width fd-button--transparent fd-button--text-alignment-left"
|
|
266
|
+
onclick="toggleClass('actionSheetPhone', 'fd-action-sheet__wrapper--active');">
|
|
267
|
+
<span class="fd-button__text">Decide Later</span>
|
|
268
|
+
</button>
|
|
269
|
+
</li>
|
|
270
|
+
<li class="fd-action-sheet__item" role="listitem">
|
|
271
|
+
<button class="fd-button fd-button--full-width fd-button--negative"
|
|
272
|
+
onclick="toggleClass('actionSheetPhone', 'fd-action-sheet__wrapper--active');">
|
|
273
|
+
<span class="fd-button__text">Cancel</span>
|
|
274
|
+
</button>
|
|
275
|
+
</li>
|
|
276
|
+
</ul>
|
|
277
|
+
</div>
|
|
278
|
+
</div>
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
## Accessibility
|
|
282
|
+
|
|
283
|
+
- Use semantic HTML elements where appropriate
|
|
284
|
+
- Include proper ARIA attributes for interactive elements
|
|
285
|
+
- Ensure keyboard navigation support
|
|
286
|
+
- Provide adequate color contrast
|
|
287
|
+
|
|
288
|
+
## Source
|
|
289
|
+
|
|
290
|
+
This documentation was automatically generated from: `packages/styles/stories/Components/action-sheet/action-sheet.stories.js`
|
|
291
|
+
|
|
292
|
+
For the latest updates and interactive examples, see [Storybook](https://sap.github.io/fundamental-styles/).
|