@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,432 @@
|
|
|
1
|
+
---
|
|
2
|
+
component: fd-toolbar
|
|
3
|
+
title: Components/Toolbar
|
|
4
|
+
category: Components
|
|
5
|
+
selector: fd-toolbar
|
|
6
|
+
cssFile: toolbar.css
|
|
7
|
+
sourcePath: packages/styles/stories/Components/toolbar/toolbar.stories.js
|
|
8
|
+
tags: []
|
|
9
|
+
dependencies: ["button","icon","popover","toolbar"]
|
|
10
|
+
relatedComponents: ["button","icon","popover","toolbar"]
|
|
11
|
+
stability: stable
|
|
12
|
+
generatedAt: 2026-06-09T18:29:01.416Z
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
# Components/Toolbar
|
|
16
|
+
|
|
17
|
+
The toolbar enables the user to change the UI or trigger an action. For example, the user can change views, manipulate data or objects, navigate to another page, perform generic actions, and so on. This component is usually paired with buttons, which are always right-aligned.
|
|
18
|
+
|
|
19
|
+
##Usage
|
|
20
|
+
**Toolbar actions can be as follows:**
|
|
21
|
+
|
|
22
|
+
- They can be independent of the current selection and not related to a specific item or object.
|
|
23
|
+
- They can be specific to the current object (user selects one item).
|
|
24
|
+
- They can apply to a set of items (user selects two or more items).
|
|
25
|
+
- They can control the settings for parts of the UI content. For example, an action can affect all items in a **Table**.
|
|
26
|
+
|
|
27
|
+
##Sizes
|
|
28
|
+
There are two sizes of the toolbar that should be chosen based on the type of device and its screen width.
|
|
29
|
+
|
|
30
|
+
| Size | Modifier class | Screen width | Device |
|
|
31
|
+
| :---- | :-------- | :--------- | :------- |
|
|
32
|
+
| Cozy | default | < 599 px | Mobile and small tablets |
|
|
33
|
+
| Compact | \
|
|
34
|
+
|
|
35
|
+
## Usage Guidelines
|
|
36
|
+
|
|
37
|
+
**Toolbar actions can be as follows:**
|
|
38
|
+
|
|
39
|
+
- They can be independent of the current selection and not related to a specific item or object.
|
|
40
|
+
- They can be specific to the current object (user selects one item).
|
|
41
|
+
- They can apply to a set of items (user selects two or more items).
|
|
42
|
+
- They can control the settings for parts of the UI content. For example, an action can affect all items in a **Table**.
|
|
43
|
+
|
|
44
|
+
## Dependencies
|
|
45
|
+
|
|
46
|
+
This component depends on the following CSS files:
|
|
47
|
+
|
|
48
|
+
- `button.css`
|
|
49
|
+
- `icon.css`
|
|
50
|
+
- `popover.css`
|
|
51
|
+
- `toolbar.css`
|
|
52
|
+
|
|
53
|
+
## Installation
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
npm install fundamental-styles
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
```html
|
|
60
|
+
<!-- Include theme -->
|
|
61
|
+
<link href="node_modules/fundamental-styles/dist/theming/sap_horizon.css" rel="stylesheet">
|
|
62
|
+
|
|
63
|
+
<!-- Include component CSS -->
|
|
64
|
+
<link href="node_modules/fundamental-styles/dist/toolbar.css" rel="stylesheet">
|
|
65
|
+
|
|
66
|
+
<!-- Include dependencies -->
|
|
67
|
+
<link href="node_modules/fundamental-styles/dist/button.css" rel="stylesheet">
|
|
68
|
+
<link href="node_modules/fundamental-styles/dist/icon.css" rel="stylesheet">
|
|
69
|
+
<link href="node_modules/fundamental-styles/dist/popover.css" rel="stylesheet">
|
|
70
|
+
<link href="node_modules/fundamental-styles/dist/toolbar.css" rel="stylesheet">
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## Basic Usage
|
|
74
|
+
|
|
75
|
+
```html
|
|
76
|
+
<div class="fd-toolbar" role="toolbar" aria-label="Toolbar">
|
|
77
|
+
<span class="fd-toolbar__spacer"> </span>
|
|
78
|
+
<button class="fd-button fd-button--transparent">New</button>
|
|
79
|
+
<button class="fd-button fd-button--transparent">Open</button>
|
|
80
|
+
<button class="fd-button fd-button--transparent">Edit</button>
|
|
81
|
+
<button class="fd-button fd-button--transparent">Delete</button>
|
|
82
|
+
<span class="fd-toolbar__separator"></span>
|
|
83
|
+
<button class="fd-button fd-button--transparent" aria-label="Survey">
|
|
84
|
+
<i class="sap-icon--survey"></i>
|
|
85
|
+
</button>
|
|
86
|
+
<button class="fd-button fd-button--transparent" aria-label="Pool">
|
|
87
|
+
<i class="sap-icon--pool"></i>
|
|
88
|
+
</button>
|
|
89
|
+
<button class="fd-button fd-button--transparent" aria-label="Chart">
|
|
90
|
+
<i class="sap-icon--pie-chart"></i>
|
|
91
|
+
</button>
|
|
92
|
+
</div>
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
## Modifiers
|
|
96
|
+
|
|
97
|
+
| Class | Description |
|
|
98
|
+
|-------|-------------|
|
|
99
|
+
| `fd-toolbar--active` | Style variant |
|
|
100
|
+
| `fd-toolbar--auto` | Style variant |
|
|
101
|
+
| `fd-toolbar--clear` | Style variant |
|
|
102
|
+
| `fd-toolbar--info` | Style variant |
|
|
103
|
+
| `fd-toolbar--solid` | Toolbar can be styled in various ways depending on the use case |
|
|
104
|
+
| `fd-toolbar--title` | Style variant |
|
|
105
|
+
| `fd-toolbar--transparent` | Style variant |
|
|
106
|
+
|
|
107
|
+
## States
|
|
108
|
+
|
|
109
|
+
| Class | Description |
|
|
110
|
+
|-------|-------------|
|
|
111
|
+
| `is-active` | Active state |
|
|
112
|
+
| `is-hover` | Hover state |
|
|
113
|
+
|
|
114
|
+
## BEM Elements
|
|
115
|
+
|
|
116
|
+
This component uses the following BEM elements:
|
|
117
|
+
|
|
118
|
+
- `fd-toolbar__overflow`
|
|
119
|
+
- `fd-toolbar__overflow-button`
|
|
120
|
+
- `fd-toolbar__overflow-label`
|
|
121
|
+
- `fd-toolbar__separator`
|
|
122
|
+
- `fd-toolbar__spacer`
|
|
123
|
+
- `fd-toolbar__spacer--fixed`
|
|
124
|
+
- `fd-toolbar__title`
|
|
125
|
+
|
|
126
|
+
## Related Components
|
|
127
|
+
|
|
128
|
+
This component works with or depends on:
|
|
129
|
+
|
|
130
|
+
- `button`
|
|
131
|
+
- `icon`
|
|
132
|
+
- `popover`
|
|
133
|
+
- `toolbar`
|
|
134
|
+
|
|
135
|
+
## Design Tokens
|
|
136
|
+
|
|
137
|
+
Key CSS variables used by this component:
|
|
138
|
+
|
|
139
|
+
- `--active`
|
|
140
|
+
- `--ai`
|
|
141
|
+
- `--auto`
|
|
142
|
+
- `--clear`
|
|
143
|
+
- `--fade-in`
|
|
144
|
+
- `--fade-out`
|
|
145
|
+
- `--fdTitle_Color`
|
|
146
|
+
- `--fdTitle_Font_Size`
|
|
147
|
+
- `--fdToolbar_Auto_Background`
|
|
148
|
+
- `--fdToolbar_Background`
|
|
149
|
+
- `--fdToolbar_Border_Bottom`
|
|
150
|
+
- `--fdToolbar_Border_Top`
|
|
151
|
+
- `--fdToolbar_Height`
|
|
152
|
+
- `--fdToolbar_Info_Color`
|
|
153
|
+
- `--fdToolbar_Info_Outline_Color`
|
|
154
|
+
|
|
155
|
+
*...and 5 more*
|
|
156
|
+
|
|
157
|
+
## Examples
|
|
158
|
+
|
|
159
|
+
### Primary
|
|
160
|
+
|
|
161
|
+
The primary toolbar displays several actions separated by icon buttons. It is displayed in cozy mode, which is ideal for mobile and small tablet screens.
|
|
162
|
+
|
|
163
|
+
```html
|
|
164
|
+
<div class="fd-toolbar" role="toolbar" aria-label="Toolbar">
|
|
165
|
+
<span class="fd-toolbar__spacer"> </span>
|
|
166
|
+
<button class="fd-button fd-button--transparent">New</button>
|
|
167
|
+
<button class="fd-button fd-button--transparent">Open</button>
|
|
168
|
+
<button class="fd-button fd-button--transparent">Edit</button>
|
|
169
|
+
<button class="fd-button fd-button--transparent">Delete</button>
|
|
170
|
+
<span class="fd-toolbar__separator"></span>
|
|
171
|
+
<button class="fd-button fd-button--transparent" aria-label="Survey">
|
|
172
|
+
<i class="sap-icon--survey"></i>
|
|
173
|
+
</button>
|
|
174
|
+
<button class="fd-button fd-button--transparent" aria-label="Pool">
|
|
175
|
+
<i class="sap-icon--pool"></i>
|
|
176
|
+
</button>
|
|
177
|
+
<button class="fd-button fd-button--transparent" aria-label="Chart">
|
|
178
|
+
<i class="sap-icon--pie-chart"></i>
|
|
179
|
+
</button>
|
|
180
|
+
</div>
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
### Overflow
|
|
184
|
+
|
|
185
|
+
The Overflow behaviour of the toolbar can place elements in an overflow state when there is not enough space to display all of them.
|
|
186
|
+
The overflowing elements are represented by a button and upon interacting with the button a popover with a list of elements is shown. <br> The vertical spacing between the elements is achieved by additional modifier classes: <br>
|
|
187
|
+
- \
|
|
188
|
+
|
|
189
|
+
```html
|
|
190
|
+
<div class="fd-toolbar" role="toolbar" aria-label="Toolbar">
|
|
191
|
+
<span>Products (34)</span>
|
|
192
|
+
<button class="fd-button fd-button--transparent">Create</button>
|
|
193
|
+
<span class="fd-toolbar__spacer"> </span>
|
|
194
|
+
<button class="fd-button fd-button--transparent">Save</button>
|
|
195
|
+
<button class="fd-button fd-button--transparent">Copy</button>
|
|
196
|
+
<span class="fd-toolbar__separator"></span>
|
|
197
|
+
<div class="fd-popover">
|
|
198
|
+
<div class="fd-popover__control">
|
|
199
|
+
<button class="fd-button fd-button--transparent"
|
|
200
|
+
aria-controls="wgxzK85912"
|
|
201
|
+
aria-haspopup="true"
|
|
202
|
+
aria-expanded="true"
|
|
203
|
+
id="amr9034qihr"
|
|
204
|
+
onclick="toggleElAttrs('wgxzK85912', ['aria-hidden']);toggleElAttrs('amr9034qihr', ['aria-expanded']);"
|
|
205
|
+
aria-label="More">
|
|
206
|
+
<i class="sap-icon--overflow"></i>
|
|
207
|
+
</button>
|
|
208
|
+
<div class="fd-popover__body fd-popover__body--right fd-popover__body--no-arrow"
|
|
209
|
+
aria-hidden="false"
|
|
210
|
+
id="wgxzK85912">
|
|
211
|
+
<div class="fd-toolbar__overflow">
|
|
212
|
+
<button class="fd-button fd-button--transparent fd-toolbar__overflow-button">Edit</button>
|
|
213
|
+
<span class="fd-toolbar__separator"></span>
|
|
214
|
+
<button class="fd-button fd-button--transparent fd-toolbar__overflow-button">Delete</button>
|
|
215
|
+
<span class="fd-toolbar__separator"></span>
|
|
216
|
+
<button class="fd-button fd-button--transparent fd-toolbar__overflow-button">Assign</button>
|
|
217
|
+
<button class="fd-button fd-button--transparent fd-toolbar__overflow-button">Exit</button>
|
|
218
|
+
<span class="fd-toolbar__separator"></span>
|
|
219
|
+
<label class="fd-label fd-toolbar__overflow-label">Label</label>
|
|
220
|
+
<label class="fd-form-label fd-toolbar__overflow-label">Form Label</label>
|
|
221
|
+
</div>
|
|
222
|
+
</div>
|
|
223
|
+
</div>
|
|
224
|
+
</div>
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
### Types
|
|
228
|
+
|
|
229
|
+
Toolbar can be styled in various ways depending on the use case.
|
|
230
|
+
|
|
231
|
+
| Types | Modifier class | Description |
|
|
232
|
+
| :-------- | :------------- | :--------------- |
|
|
233
|
+
| Solid | \
|
|
234
|
+
|
|
235
|
+
```html
|
|
236
|
+
<h3>Solid</h3>
|
|
237
|
+
<div class="fd-toolbar fd-toolbar--solid" role="toolbar" aria-label="Solid toolbar">
|
|
238
|
+
<span>Products (23)</span>
|
|
239
|
+
<button class="fd-button fd-button--transparent">Create</button>
|
|
240
|
+
<span class="fd-toolbar__spacer "> </span>
|
|
241
|
+
<button class="fd-button fd-button--transparent">Edit</button>
|
|
242
|
+
<button class="fd-button fd-button--transparent">Delete</button>
|
|
243
|
+
<span class="fd-toolbar__separator"></span>
|
|
244
|
+
<button class="fd-button fd-button--transparent" aria-label="Survey">
|
|
245
|
+
<i class="sap-icon--survey"></i>
|
|
246
|
+
</button>
|
|
247
|
+
<button class="fd-button fd-button--transparent" aria-label="Pool">
|
|
248
|
+
<i class="sap-icon--pool"></i>
|
|
249
|
+
</button>
|
|
250
|
+
<button class="fd-button fd-button--transparent" aria-label="Chart">
|
|
251
|
+
<i class="sap-icon--pie-chart"></i>
|
|
252
|
+
</button>
|
|
253
|
+
<h3>Transparent</h3>
|
|
254
|
+
<div class="fd-toolbar fd-toolbar--transparent" role="toolbar" aria-label="Transparent toolbar">
|
|
255
|
+
<button class="fd-button fd-button--transparent">Create</button>
|
|
256
|
+
<button class="fd-button fd-button--transparent">Save</button>
|
|
257
|
+
<span class="fd-toolbar__spacer"> </span>
|
|
258
|
+
<button class="fd-button fd-button--transparent">Edit</button>
|
|
259
|
+
<button class="fd-button fd-button--transparent">Delete</button>
|
|
260
|
+
<span class="fd-toolbar__separator"></span>
|
|
261
|
+
<button class="fd-button fd-button--transparent" aria-label="Survey">
|
|
262
|
+
<i class="sap-icon--survey"></i>
|
|
263
|
+
</button>
|
|
264
|
+
<button class="fd-button fd-button--transparent" aria-label="Pool">
|
|
265
|
+
<i class="sap-icon--pool"></i>
|
|
266
|
+
</button>
|
|
267
|
+
<button class="fd-button fd-button--transparent" aria-label="Chart">
|
|
268
|
+
<i class="sap-icon--pie-chart"></i>
|
|
269
|
+
</button>
|
|
270
|
+
</div>
|
|
271
|
+
<h3>Auto</h3>
|
|
272
|
+
<div class="fd-toolbar fd-toolbar--auto" role="toolbar" aria-label="Auto toolbar">
|
|
273
|
+
<button class="fd-button fd-button--transparent">Create</button>
|
|
274
|
+
<span class="fd-toolbar__spacer"> </span>
|
|
275
|
+
<button class="fd-button fd-button--transparent">Edit</button>
|
|
276
|
+
<button class="fd-button fd-button--transparent">Delete</button>
|
|
277
|
+
<span class="fd-toolbar__separator"></span>
|
|
278
|
+
<button class="fd-button fd-button--transparent" aria-label="Survey">
|
|
279
|
+
<i class="sap-icon--survey"></i>
|
|
280
|
+
</button>
|
|
281
|
+
<button class="fd-button fd-button--transparent" aria-label="Pool">
|
|
282
|
+
<i class="sap-icon--pool"></i>
|
|
283
|
+
</button>
|
|
284
|
+
<button class="fd-button fd-button--transparent" aria-label="Chart">
|
|
285
|
+
<i class="sap-icon--pie-chart"></i>
|
|
286
|
+
</button>
|
|
287
|
+
</div>
|
|
288
|
+
<h3>Clear</h3>
|
|
289
|
+
<div class="fd-toolbar fd-toolbar--clear" role="toolbar" aria-label="Clear toolbar">
|
|
290
|
+
<span class="fd-toolbar__spacer "> </span>
|
|
291
|
+
<button class="fd-button fd-button--transparent">Edit</button>
|
|
292
|
+
<button class="fd-button fd-button--transparent">Delete</button>
|
|
293
|
+
<span class="fd-toolbar__separator"></span>
|
|
294
|
+
<button class="fd-button fd-button--transparent" aria-label="Survey">
|
|
295
|
+
<i class="sap-icon--survey"></i>
|
|
296
|
+
</button>
|
|
297
|
+
<button class="fd-button fd-button--transparent" aria-label="Pool">
|
|
298
|
+
<i class="sap-icon--pool"></i>
|
|
299
|
+
</button>
|
|
300
|
+
<button class="fd-button fd-button--transparent" aria-label="Chart">
|
|
301
|
+
<i class="sap-icon--pie-chart"></i>
|
|
302
|
+
</button>
|
|
303
|
+
</div>
|
|
304
|
+
<h3>Info (not active)</h3>
|
|
305
|
+
<div class="fd-toolbar fd-toolbar--info" role="toolbar" aria-label="Info, not active toolbar">
|
|
306
|
+
<span>3 item selected</span>
|
|
307
|
+
<span class="fd-toolbar__spacer"></span>
|
|
308
|
+
<i class="sap-icon--undo"></i>
|
|
309
|
+
</div>
|
|
310
|
+
<h3>Info (active)</h3>
|
|
311
|
+
<div class="fd-toolbar fd-toolbar--info fd-toolbar--active" tabindex="0" role="toolbar" aria-label="Info, active toolbar">
|
|
312
|
+
<span>3 item selected</span>
|
|
313
|
+
<span class="fd-toolbar__spacer"></span>
|
|
314
|
+
<i class="sap-icon--undo"></i>
|
|
315
|
+
</div>
|
|
316
|
+
<h3>Info (active, hover state)</h3>
|
|
317
|
+
<div class="fd-toolbar fd-toolbar--info fd-toolbar--active is-hover" tabindex="0" role="toolbar" aria-label="Info, active toolbar, hover state">
|
|
318
|
+
<span>3 item selected</span>
|
|
319
|
+
<span class="fd-toolbar__spacer"></span>
|
|
320
|
+
<i class="sap-icon--undo"></i>
|
|
321
|
+
</div>
|
|
322
|
+
<h3>Info (active, active state)</h3>
|
|
323
|
+
<div class="fd-toolbar fd-toolbar--info fd-toolbar--active is-active" tabindex="0" role="toolbar" aria-label="Info, active toolbar, active state">
|
|
324
|
+
<span>3 item selected</span>
|
|
325
|
+
<span class="fd-toolbar__spacer"></span>
|
|
326
|
+
<i class="sap-icon--undo"></i>
|
|
327
|
+
</div>
|
|
328
|
+
<h3>Title</h3>
|
|
329
|
+
<div class="fd-toolbar fd-toolbar--title" role="toolbar" aria-label="Title toolbar">
|
|
330
|
+
<h4 class="fd-title fd-title--h4 fd-toolbar__title">Products (104)</h4>
|
|
331
|
+
<span class="fd-toolbar__spacer"></span>
|
|
332
|
+
<button class="fd-button fd-button--transparent">Save</button>
|
|
333
|
+
<button class="fd-button fd-button--transparent">Delete</button>
|
|
334
|
+
</div>
|
|
335
|
+
</div>
|
|
336
|
+
```
|
|
337
|
+
|
|
338
|
+
### Separators
|
|
339
|
+
|
|
340
|
+
Separators should be used to visually separate items from each other. To display separators in toolbars, add the \
|
|
341
|
+
|
|
342
|
+
```html
|
|
343
|
+
<div class="fd-toolbar" role="toolbar" aria-label="Toolbar">
|
|
344
|
+
<button class="fd-button fd-button--positive">Accept</button>
|
|
345
|
+
<span class="fd-toolbar__separator"></span>
|
|
346
|
+
<button class="fd-button fd-button--reject">Reject</button>
|
|
347
|
+
<span class="fd-toolbar__separator"></span>
|
|
348
|
+
</div>
|
|
349
|
+
<div class="fd-toolbar fd-toolbar--solid" role="toolbar" aria-label="Toolbar">
|
|
350
|
+
<span class="fd-toolbar__spacer"></span>
|
|
351
|
+
<span class="fd-toolbar__separator"></span>
|
|
352
|
+
<button class="fd-button fd-button--transparent" aria-label="Survey">
|
|
353
|
+
<i class="sap-icon--survey"></i>
|
|
354
|
+
</button>
|
|
355
|
+
<span class="fd-toolbar__separator"></span>
|
|
356
|
+
<button class="fd-button fd-button--transparent" aria-label="Pool">
|
|
357
|
+
<i class="sap-icon--pool"></i>
|
|
358
|
+
</button>
|
|
359
|
+
<button class="fd-button fd-button--transparent" aria-label="Chart">
|
|
360
|
+
<i class="sap-icon--pie-chart"></i>
|
|
361
|
+
</button>
|
|
362
|
+
</div>
|
|
363
|
+
```
|
|
364
|
+
|
|
365
|
+
### Alignment
|
|
366
|
+
|
|
367
|
+
Toolbars are typically used for left/right alignment; however, they can be displayed in any way with the \
|
|
368
|
+
|
|
369
|
+
```html
|
|
370
|
+
<h3>Left and right-aligned</h3>
|
|
371
|
+
<div class="fd-toolbar" role="toolbar" aria-label="Left and right-aligned toolbar">
|
|
372
|
+
<button class="fd-button fd-button--positive">Accept</button>
|
|
373
|
+
<span class="fd-toolbar__spacer"></span>
|
|
374
|
+
<button class="fd-button fd-button--reject">Reject</button>
|
|
375
|
+
</div>
|
|
376
|
+
<h3>Left-aligned</h3>
|
|
377
|
+
<div class="fd-toolbar" role="toolbar" aria-label="Left-aligned toolbar">
|
|
378
|
+
<button class="fd-button fd-button--positive">Accept</button>
|
|
379
|
+
<button class="fd-button fd-button--reject">Reject</button>
|
|
380
|
+
</div>
|
|
381
|
+
<h3>Centered</h3>
|
|
382
|
+
<div class="fd-toolbar" role="toolbar" aria-label="Centered toolbar">
|
|
383
|
+
<span class="fd-toolbar__spacer"></span>
|
|
384
|
+
<button class="fd-button">Centered</button>
|
|
385
|
+
<span class="fd-toolbar__spacer"></span>
|
|
386
|
+
</div>
|
|
387
|
+
<h3>Right-aligned</h3>
|
|
388
|
+
<div class="fd-toolbar" role="toolbar" aria-label="Right-aligned toolbar">
|
|
389
|
+
<span class="fd-toolbar__spacer"></span>
|
|
390
|
+
<button class="fd-button">Right-aligned</button>
|
|
391
|
+
</div>
|
|
392
|
+
<h3>Left, center, and right-aligned</h3>
|
|
393
|
+
<div class="fd-toolbar" role="toolbar" aria-label="Left, center, and right-aligned toolbar">
|
|
394
|
+
<button class="fd-button">Left-aligned</button>
|
|
395
|
+
<span class="fd-toolbar__spacer"></span>
|
|
396
|
+
<button class="fd-button">Centered</button>
|
|
397
|
+
<span class="fd-toolbar__spacer"></span>
|
|
398
|
+
<button class="fd-button">Right-aligned</button>
|
|
399
|
+
</div>
|
|
400
|
+
<h3>Spacers</h3>
|
|
401
|
+
<div class="fd-toolbar" role="toolbar" aria-label="Spacers toolbar">
|
|
402
|
+
<button class="fd-button">Left-aligned</button>
|
|
403
|
+
<span class="fd-toolbar__spacer"></span>
|
|
404
|
+
<button class="fd-button">Inside</button>
|
|
405
|
+
<span class="fd-toolbar__spacer"></span>
|
|
406
|
+
<button class="fd-button">Inside</button>
|
|
407
|
+
<span class="fd-toolbar__spacer"></span>
|
|
408
|
+
<button class="fd-button">Right-aligned</button>
|
|
409
|
+
</div>
|
|
410
|
+
<h3>Spacers with fixed width</h3>
|
|
411
|
+
<div class="fd-toolbar" role="toolbar" aria-label="Spacers with fixed width toolbar">
|
|
412
|
+
<button class="fd-button fd-button--transparent">Accept</button>
|
|
413
|
+
<button class="fd-button fd-button--transparent">Reject</button>
|
|
414
|
+
<span class="fd-toolbar__spacer fd-toolbar__spacer--fixed"></span>
|
|
415
|
+
<button class="fd-button">Edit</button>
|
|
416
|
+
<span class="fd-toolbar__spacer fd-toolbar__spacer--fixed"></span>
|
|
417
|
+
<button class="fd-button fd-button--transparent">Delete</button>
|
|
418
|
+
</div>
|
|
419
|
+
```
|
|
420
|
+
|
|
421
|
+
## Accessibility
|
|
422
|
+
|
|
423
|
+
- Use semantic HTML elements where appropriate
|
|
424
|
+
- Include proper ARIA attributes for interactive elements
|
|
425
|
+
- Ensure keyboard navigation support
|
|
426
|
+
- Provide adequate color contrast
|
|
427
|
+
|
|
428
|
+
## Source
|
|
429
|
+
|
|
430
|
+
This documentation was automatically generated from: `packages/styles/stories/Components/toolbar/toolbar.stories.js`
|
|
431
|
+
|
|
432
|
+
For the latest updates and interactive examples, see [Storybook](https://sap.github.io/fundamental-styles/).
|