@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,2876 @@
|
|
|
1
|
+
---
|
|
2
|
+
component: fd-form-label
|
|
3
|
+
title: Components/Select
|
|
4
|
+
category: Components
|
|
5
|
+
selector: fd-form-label
|
|
6
|
+
cssFile: form-label.css
|
|
7
|
+
sourcePath: packages/styles/stories/Components/select/select.stories.js
|
|
8
|
+
tags: []
|
|
9
|
+
dependencies: ["button","dialog","form-item","form-label","form-message","icon","layout-grid","list","popover","select","toolbar"]
|
|
10
|
+
relatedComponents: ["button","dialog","form-item","form-label","form-message","icon","layout-grid","list","popover","select","toolbar"]
|
|
11
|
+
stability: stable
|
|
12
|
+
generatedAt: 2026-06-09T18:29:01.386Z
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
# Components/Select
|
|
16
|
+
|
|
17
|
+
The select component is commonly used to enable users to select an item from a predefined list. It should be used when there are less than 12 items to choose from.
|
|
18
|
+
|
|
19
|
+
##Usage
|
|
20
|
+
|
|
21
|
+
**Use select if:**
|
|
22
|
+
|
|
23
|
+
- Users need to select one item exclusively from a short list of options (for example, fewer than 12 items).
|
|
24
|
+
- The values of the option list are of secondary importance and do not need to be displayed right away.
|
|
25
|
+
|
|
26
|
+
**Do not use select if:**
|
|
27
|
+
|
|
28
|
+
- Users need to choose between two options, such as _On_ or _Off_ and _Yes_ or _No_. In this case, consider using a **Switch** instead.
|
|
29
|
+
- Users need to pick one item from a very large set of options. In this case, consider using the **Combobox Input** instead.
|
|
30
|
+
- Your use case requires all available options to be displayed right away, without any user interaction. In this case, consider using **radio buttons or a radio button group** instead.
|
|
31
|
+
|
|
32
|
+
## Usage Guidelines
|
|
33
|
+
|
|
34
|
+
**Use select if:**
|
|
35
|
+
|
|
36
|
+
- Users need to select one item exclusively from a short list of options (for example, fewer than 12 items).
|
|
37
|
+
- The values of the option list are of secondary importance and do not need to be displayed right away.
|
|
38
|
+
|
|
39
|
+
## When Not To Use
|
|
40
|
+
|
|
41
|
+
- Users need to choose between two options, such as _On_ or _Off_ and _Yes_ or _No_. In this case, consider using a **Switch** instead.
|
|
42
|
+
- Users need to pick one item from a very large set of options. In this case, consider using the **Combobox Input** instead.
|
|
43
|
+
- Your use case requires all available options to be displayed right away, without any user interaction. In this case, consider using **radio buttons or a radio button group** instead.
|
|
44
|
+
|
|
45
|
+
## Dependencies
|
|
46
|
+
|
|
47
|
+
This component depends on the following CSS files:
|
|
48
|
+
|
|
49
|
+
- `button.css`
|
|
50
|
+
- `dialog.css`
|
|
51
|
+
- `form-item.css`
|
|
52
|
+
- `form-label.css`
|
|
53
|
+
- `form-message.css`
|
|
54
|
+
- `icon.css`
|
|
55
|
+
- `layout-grid.css`
|
|
56
|
+
- `list.css`
|
|
57
|
+
- `popover.css`
|
|
58
|
+
- `select.css`
|
|
59
|
+
- `toolbar.css`
|
|
60
|
+
|
|
61
|
+
## Installation
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
npm install fundamental-styles
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
```html
|
|
68
|
+
<!-- Include theme -->
|
|
69
|
+
<link href="node_modules/fundamental-styles/dist/theming/sap_horizon.css" rel="stylesheet">
|
|
70
|
+
|
|
71
|
+
<!-- Include component CSS -->
|
|
72
|
+
<link href="node_modules/fundamental-styles/dist/form-label.css" rel="stylesheet">
|
|
73
|
+
|
|
74
|
+
<!-- Include dependencies -->
|
|
75
|
+
<link href="node_modules/fundamental-styles/dist/button.css" rel="stylesheet">
|
|
76
|
+
<link href="node_modules/fundamental-styles/dist/dialog.css" rel="stylesheet">
|
|
77
|
+
<link href="node_modules/fundamental-styles/dist/form-item.css" rel="stylesheet">
|
|
78
|
+
<link href="node_modules/fundamental-styles/dist/form-label.css" rel="stylesheet">
|
|
79
|
+
<link href="node_modules/fundamental-styles/dist/form-message.css" rel="stylesheet">
|
|
80
|
+
<link href="node_modules/fundamental-styles/dist/icon.css" rel="stylesheet">
|
|
81
|
+
<link href="node_modules/fundamental-styles/dist/layout-grid.css" rel="stylesheet">
|
|
82
|
+
<link href="node_modules/fundamental-styles/dist/list.css" rel="stylesheet">
|
|
83
|
+
<link href="node_modules/fundamental-styles/dist/popover.css" rel="stylesheet">
|
|
84
|
+
<link href="node_modules/fundamental-styles/dist/select.css" rel="stylesheet">
|
|
85
|
+
<link href="node_modules/fundamental-styles/dist/toolbar.css" rel="stylesheet">
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
## Basic Usage
|
|
89
|
+
|
|
90
|
+
```html
|
|
91
|
+
<label class="fd-form-label" id="cozySelectLabel">Regular, Placeholder text</label><div class="fd-popover">
|
|
92
|
+
<div class="fd-popover__control" aria-expanded="false" aria-haspopup="true">
|
|
93
|
+
<div class="fd-select">
|
|
94
|
+
<div
|
|
95
|
+
role="combobox"
|
|
96
|
+
aria-roledescription="Contains item list for selection"
|
|
97
|
+
aria-haspopup="listbox"
|
|
98
|
+
aria-expanded="false"
|
|
99
|
+
aria-labelledby="cozySelectLabel"
|
|
100
|
+
class="fd-select__control is-placeholder"
|
|
101
|
+
value="Select an option"
|
|
102
|
+
tabindex="0">
|
|
103
|
+
<span class="fd-select__text-content">Select an option</span>
|
|
104
|
+
|
|
105
|
+
<span
|
|
106
|
+
role="button"
|
|
107
|
+
tabindex="-1"
|
|
108
|
+
aria-label="Selection options"
|
|
109
|
+
title="Selection options"
|
|
110
|
+
class="fd-button fd-button--transparent fd-select__button">
|
|
111
|
+
<i class="sap-icon--slim-arrow-down" role="presentation" aria-hidden="true"></i>
|
|
112
|
+
</span>
|
|
113
|
+
</div>
|
|
114
|
+
</div>
|
|
115
|
+
</div>
|
|
116
|
+
|
|
117
|
+
<label class="fd-form-label" id="cozySelectLabelHover">Hover on Input Field, Placeholder text</label><div class="fd-popover">
|
|
118
|
+
<div class="fd-popover__control" aria-expanded="false" aria-haspopup="true">
|
|
119
|
+
<div class="fd-select">
|
|
120
|
+
<div
|
|
121
|
+
role="combobox"
|
|
122
|
+
aria-roledescription="Contains item list for selection"
|
|
123
|
+
aria-haspopup="listbox"
|
|
124
|
+
aria-expanded="false"
|
|
125
|
+
aria-labelledby="cozySelectLabelHover"
|
|
126
|
+
class="fd-select__control is-placeholder is-hover"
|
|
127
|
+
value="Select an option"
|
|
128
|
+
tabindex="0">
|
|
129
|
+
<span class="fd-select__text-content">Select an option</span>
|
|
130
|
+
|
|
131
|
+
<span
|
|
132
|
+
role="button"
|
|
133
|
+
tabindex="-1"
|
|
134
|
+
aria-label="Selection options"
|
|
135
|
+
title="Selection options"
|
|
136
|
+
class="fd-button fd-button--transparent fd-select__button">
|
|
137
|
+
<i class="sap-icon--slim-arrow-down" role="presentation" aria-hidden="true"></i>
|
|
138
|
+
</span>
|
|
139
|
+
</div>
|
|
140
|
+
</div>
|
|
141
|
+
</div>
|
|
142
|
+
|
|
143
|
+
<label class="fd-form-label" id="cozySelectLabelHoverBtn">Hover on Button, Placeholder text</label><div class="fd-popover">
|
|
144
|
+
<div class="fd-popover__control" aria-expanded="false" aria-haspopup="true">
|
|
145
|
+
<div class="fd-select">
|
|
146
|
+
<div
|
|
147
|
+
role="combobox"
|
|
148
|
+
aria-roledescription="Contains item list for selection"
|
|
149
|
+
aria-haspopup="listbox"
|
|
150
|
+
aria-expanded="false"
|
|
151
|
+
aria-labelledby="cozySelectLabelHoverBtn"
|
|
152
|
+
class="fd-select__control is-placeholder is-hover"
|
|
153
|
+
value="Select an option"
|
|
154
|
+
tabindex="0">
|
|
155
|
+
<span class="fd-select__text-content">Select an option</span>
|
|
156
|
+
|
|
157
|
+
<span
|
|
158
|
+
role="button"
|
|
159
|
+
tabindex="-1"
|
|
160
|
+
aria-label="Selection options"
|
|
161
|
+
title="Selection options"
|
|
162
|
+
class="fd-button fd-button--transparent fd-select__button is-hover">
|
|
163
|
+
<i class="sap-icon--slim-arrow-down" role="presentation" aria-hidden="true"></i>
|
|
164
|
+
</span>
|
|
165
|
+
</div>
|
|
166
|
+
</div>
|
|
167
|
+
</div>
|
|
168
|
+
|
|
169
|
+
<label class="fd-form-label" id="cozySelectLabelFocus">Focus, Placeholder text</label><div class="fd-popover">
|
|
170
|
+
<div class="fd-popover__control" aria-expanded="false" aria-haspopup="true">
|
|
171
|
+
<div class="fd-select">
|
|
172
|
+
<div
|
|
173
|
+
role="combobox"
|
|
174
|
+
aria-roledescription="Contains item list for selection"
|
|
175
|
+
aria-haspopup="listbox"
|
|
176
|
+
aria-expanded="false"
|
|
177
|
+
aria-labelledby="cozySelectLabelFocus"
|
|
178
|
+
class="fd-select__control is-placeholder is-focus"
|
|
179
|
+
value="Select an option"
|
|
180
|
+
tabindex="0">
|
|
181
|
+
<span class="fd-select__text-content">Select an option</span>
|
|
182
|
+
|
|
183
|
+
<span
|
|
184
|
+
role="button"
|
|
185
|
+
tabindex="-1"
|
|
186
|
+
aria-label="Selection options"
|
|
187
|
+
title="Selection options"
|
|
188
|
+
class="fd-button fd-button--transparent fd-select__button">
|
|
189
|
+
<i class="sap-icon--slim-arrow-down" role="presentation" aria-hidden="true"></i>
|
|
190
|
+
</span>
|
|
191
|
+
</div>
|
|
192
|
+
</div>
|
|
193
|
+
</div>
|
|
194
|
+
|
|
195
|
+
<label class="fd-form-label" id="cozySelectLabelExpanded">Expanded, Placeholder text</label><div class="fd-popover">
|
|
196
|
+
<div class="fd-popover__control" aria-expanded="false" aria-haspopup="true">
|
|
197
|
+
<div class="fd-select">
|
|
198
|
+
<div
|
|
199
|
+
role="combobox"
|
|
200
|
+
aria-roledescription="Contains item list for selection"
|
|
201
|
+
aria-haspopup="listbox"
|
|
202
|
+
aria-expanded="true"
|
|
203
|
+
aria-labelledby="cozySelectLabelExpanded"
|
|
204
|
+
class="fd-select__control is-placeholder is-expanded"
|
|
205
|
+
value="Select an option"
|
|
206
|
+
tabindex="0">
|
|
207
|
+
<span class="fd-select__text-content">Select an option</span>
|
|
208
|
+
|
|
209
|
+
<span
|
|
210
|
+
role="button"
|
|
211
|
+
tabindex="-1"
|
|
212
|
+
aria-label="Selection options"
|
|
213
|
+
title="Selection options"
|
|
214
|
+
class="fd-button fd-button--transparent fd-select__button">
|
|
215
|
+
<i class="sap-icon--slim-arrow-down" role="presentation" aria-hidden="true"></i>
|
|
216
|
+
</span>
|
|
217
|
+
</div>
|
|
218
|
+
</div>
|
|
219
|
+
</div>
|
|
220
|
+
|
|
221
|
+
<label class="fd-form-label" id="cozySelectLabelDisabled">In disabled state placeholder should not be visible</label><div class="fd-popover">
|
|
222
|
+
<div class="fd-popover__control" aria-expanded="false" aria-haspopup="true">
|
|
223
|
+
<div class="fd-select">
|
|
224
|
+
<div
|
|
225
|
+
role="combobox"
|
|
226
|
+
aria-roledescription="Contains item list for selection"
|
|
227
|
+
aria-haspopup="listbox"
|
|
228
|
+
aria-expanded="false"
|
|
229
|
+
aria-disabled="true"
|
|
230
|
+
aria-labelledby="cozySelectLabelDisabled"
|
|
231
|
+
class="fd-select__control is-placeholder is-disabled"
|
|
232
|
+
value="Select an option"
|
|
233
|
+
tabindex="0">
|
|
234
|
+
<span class="fd-select__text-content">Select an option</span>
|
|
235
|
+
|
|
236
|
+
<span
|
|
237
|
+
role="button"
|
|
238
|
+
tabindex="-1"
|
|
239
|
+
aria-label="Selection options"
|
|
240
|
+
title="Selection options"
|
|
241
|
+
class="fd-button fd-button--transparent fd-select__button">
|
|
242
|
+
<i class="sap-icon--slim-arrow-down" role="presentation" aria-hidden="true"></i>
|
|
243
|
+
</span>
|
|
244
|
+
</div>
|
|
245
|
+
</div>
|
|
246
|
+
</div>
|
|
247
|
+
|
|
248
|
+
<label class="fd-form-label" id="cozySelectLabelReadonly">In read-only state placeholder should not be visible</label><div class="fd-popover">
|
|
249
|
+
<div class="fd-popover__control" aria-expanded="false" aria-haspopup="true">
|
|
250
|
+
<div class="fd-select">
|
|
251
|
+
<div
|
|
252
|
+
role="combobox"
|
|
253
|
+
aria-roledescription="Contains item list for selection"
|
|
254
|
+
aria-haspopup="listbox"
|
|
255
|
+
aria-expanded="false"
|
|
256
|
+
aria-readonly="true"
|
|
257
|
+
aria-labelledby="cozySelectLabelReadonly"
|
|
258
|
+
class="fd-select__control is-placeholder is-readonly"
|
|
259
|
+
value="Select an option"
|
|
260
|
+
tabindex="0">
|
|
261
|
+
<span class="fd-select__text-content">Select an option</span>
|
|
262
|
+
|
|
263
|
+
<span
|
|
264
|
+
role="button"
|
|
265
|
+
tabindex="-1"
|
|
266
|
+
aria-label="Selection options"
|
|
267
|
+
title="Selection options"
|
|
268
|
+
class="fd-button fd-button--transparent fd-select__button">
|
|
269
|
+
<i class="sap-icon--slim-arrow-down" role="presentation" aria-hidden="true"></i>
|
|
270
|
+
</span>
|
|
271
|
+
</div>
|
|
272
|
+
</div>
|
|
273
|
+
</div>
|
|
274
|
+
|
|
275
|
+
<label class="fd-form-label" id="cozySelectLabelActiveSelected">Active, Selected Item</label><div class="fd-popover">
|
|
276
|
+
<div class="fd-popover__control" aria-expanded="true" aria-haspopup="true">
|
|
277
|
+
<div class="fd-select">
|
|
278
|
+
<div
|
|
279
|
+
role="combobox"
|
|
280
|
+
aria-roledescription="Contains item list for selection"
|
|
281
|
+
aria-haspopup="listbox"
|
|
282
|
+
aria-expanded="true"
|
|
283
|
+
aria-controls="cozyList"
|
|
284
|
+
aria-activedescendant="cozyListItem2"
|
|
285
|
+
aria-labelledby="cozySelectLabelActiveSelected"
|
|
286
|
+
class="fd-select__control"
|
|
287
|
+
value="List Item 1"
|
|
288
|
+
tabindex="0"
|
|
289
|
+
id="cozySelectActiveSelected"
|
|
290
|
+
onclick="
|
|
291
|
+
toggleElAttrs('h0C6A325', ['aria-hidden']);
|
|
292
|
+
toggleElAttrs('cozySelectActiveSelected', ['aria-expanded']);
|
|
293
|
+
">
|
|
294
|
+
<span class="fd-select__text-content">List item 2</span>
|
|
295
|
+
|
|
296
|
+
<span
|
|
297
|
+
role="button"
|
|
298
|
+
tabindex="-1"
|
|
299
|
+
aria-label="Selection options"
|
|
300
|
+
title="Selection options"
|
|
301
|
+
class="fd-button fd-button--transparent fd-select__button">
|
|
302
|
+
<i class="sap-icon--slim-arrow-down" role="presentation" aria-hidden="true"></i>
|
|
303
|
+
</span>
|
|
304
|
+
</div>
|
|
305
|
+
</div>
|
|
306
|
+
<div
|
|
307
|
+
aria-hidden="false"
|
|
308
|
+
class="fd-popover__body fd-popover__body--no-arrow fd-popover__body--dropdown"
|
|
309
|
+
id="h0C6A325"
|
|
310
|
+
>
|
|
311
|
+
<ul
|
|
312
|
+
id="cozyList"
|
|
313
|
+
role="listbox"
|
|
314
|
+
aria-roledescription="Contains all available items"
|
|
315
|
+
aria-labelledby="cozySelectLabelActiveSelected"
|
|
316
|
+
class="fd-list fd-list--dropdown"
|
|
317
|
+
>
|
|
318
|
+
<li
|
|
319
|
+
id="cozyListItem1"
|
|
320
|
+
role="option"
|
|
321
|
+
tabindex="0"
|
|
322
|
+
aria-selected="false"
|
|
323
|
+
aria-setsize="5"
|
|
324
|
+
aria-posinset="1"
|
|
325
|
+
class="fd-list__item">
|
|
326
|
+
<span class="fd-list__title">List item 1</span>
|
|
327
|
+
</li>
|
|
328
|
+
<li
|
|
329
|
+
id="cozyListItem2"
|
|
330
|
+
role="option"
|
|
331
|
+
tabindex="0"
|
|
332
|
+
aria-selected="true"
|
|
333
|
+
aria-setsize="5"
|
|
334
|
+
aria-posinset="2"
|
|
335
|
+
class="fd-list__item">
|
|
336
|
+
<span class="fd-list__title">List item 2</span>
|
|
337
|
+
</li>
|
|
338
|
+
<li
|
|
339
|
+
id="cozyListItem3"
|
|
340
|
+
role="option"
|
|
341
|
+
tabindex="0"
|
|
342
|
+
aria-selected="false"
|
|
343
|
+
aria-setsize="5"
|
|
344
|
+
aria-posinset="3"
|
|
345
|
+
class="fd-list__item">
|
|
346
|
+
<span class="fd-list__title">List item 3</span>
|
|
347
|
+
</li>
|
|
348
|
+
<li
|
|
349
|
+
id="cozyListItem4"
|
|
350
|
+
role="option"
|
|
351
|
+
tabindex="0"
|
|
352
|
+
aria-selected="false"
|
|
353
|
+
aria-setsize="5"
|
|
354
|
+
aria-posinset="4"
|
|
355
|
+
class="fd-list__item">
|
|
356
|
+
<span class="fd-list__title">List item 4</span>
|
|
357
|
+
</li>
|
|
358
|
+
<li
|
|
359
|
+
id="cozyListItem5"
|
|
360
|
+
role="option"
|
|
361
|
+
tabindex="0"
|
|
362
|
+
aria-selected="false"
|
|
363
|
+
aria-setsize="5"
|
|
364
|
+
aria-posinset="5"
|
|
365
|
+
class="fd-list__item">
|
|
366
|
+
<span class="fd-list__title">List item 5</span>
|
|
367
|
+
</li>
|
|
368
|
+
</ul>
|
|
369
|
+
</div>
|
|
370
|
+
```
|
|
371
|
+
|
|
372
|
+
## States
|
|
373
|
+
|
|
374
|
+
| Class | Description |
|
|
375
|
+
|-------|-------------|
|
|
376
|
+
| `is-disabled` | Disabled state |
|
|
377
|
+
| `is-error` | Error state |
|
|
378
|
+
| `is-expanded` | Expanded state |
|
|
379
|
+
| `is-focus` | Focus state |
|
|
380
|
+
| `is-hover` | Hover state |
|
|
381
|
+
| `is-information` | Information state |
|
|
382
|
+
| `is-placeholder` | Placeholder state |
|
|
383
|
+
| `is-readonly` | Readonly state |
|
|
384
|
+
| `is-success` | Success state |
|
|
385
|
+
| `is-warning` | Warning state |
|
|
386
|
+
|
|
387
|
+
## Related Components
|
|
388
|
+
|
|
389
|
+
This component works with or depends on:
|
|
390
|
+
|
|
391
|
+
- `button`
|
|
392
|
+
- `dialog`
|
|
393
|
+
- `form-item`
|
|
394
|
+
- `form-label`
|
|
395
|
+
- `form-message`
|
|
396
|
+
- `icon`
|
|
397
|
+
- `layout-grid`
|
|
398
|
+
- `list`
|
|
399
|
+
- `popover`
|
|
400
|
+
- `select`
|
|
401
|
+
- `toolbar`
|
|
402
|
+
|
|
403
|
+
## Design Tokens
|
|
404
|
+
|
|
405
|
+
Key CSS variables used by this component:
|
|
406
|
+
|
|
407
|
+
- `--colon`
|
|
408
|
+
- `--disabled`
|
|
409
|
+
- `--inline-help`
|
|
410
|
+
- `--required`
|
|
411
|
+
- `--sapField_RequiredColor`
|
|
412
|
+
- `--sapField_TextColor`
|
|
413
|
+
- `--sapFontLargeSize`
|
|
414
|
+
- `--sapFontSize`
|
|
415
|
+
- `--stand-alone`
|
|
416
|
+
- `--unit-description`
|
|
417
|
+
- `--wrap`
|
|
418
|
+
|
|
419
|
+
## Examples
|
|
420
|
+
|
|
421
|
+
### Default
|
|
422
|
+
|
|
423
|
+
Select displays a predefined option and a button that triggers a dropdown menu to view more options (list items). By default, it is displayed in cozy mode.
|
|
424
|
+
|
|
425
|
+
```html
|
|
426
|
+
<label class="fd-form-label" id="cozySelectLabel">Regular, Placeholder text</label><div class="fd-popover">
|
|
427
|
+
<div class="fd-popover__control" aria-expanded="false" aria-haspopup="true">
|
|
428
|
+
<div class="fd-select">
|
|
429
|
+
<div
|
|
430
|
+
role="combobox"
|
|
431
|
+
aria-roledescription="Contains item list for selection"
|
|
432
|
+
aria-haspopup="listbox"
|
|
433
|
+
aria-expanded="false"
|
|
434
|
+
aria-labelledby="cozySelectLabel"
|
|
435
|
+
class="fd-select__control is-placeholder"
|
|
436
|
+
value="Select an option"
|
|
437
|
+
tabindex="0">
|
|
438
|
+
<span class="fd-select__text-content">Select an option</span>
|
|
439
|
+
|
|
440
|
+
<span
|
|
441
|
+
role="button"
|
|
442
|
+
tabindex="-1"
|
|
443
|
+
aria-label="Selection options"
|
|
444
|
+
title="Selection options"
|
|
445
|
+
class="fd-button fd-button--transparent fd-select__button">
|
|
446
|
+
<i class="sap-icon--slim-arrow-down" role="presentation" aria-hidden="true"></i>
|
|
447
|
+
</span>
|
|
448
|
+
</div>
|
|
449
|
+
</div>
|
|
450
|
+
</div>
|
|
451
|
+
|
|
452
|
+
<label class="fd-form-label" id="cozySelectLabelHover">Hover on Input Field, Placeholder text</label><div class="fd-popover">
|
|
453
|
+
<div class="fd-popover__control" aria-expanded="false" aria-haspopup="true">
|
|
454
|
+
<div class="fd-select">
|
|
455
|
+
<div
|
|
456
|
+
role="combobox"
|
|
457
|
+
aria-roledescription="Contains item list for selection"
|
|
458
|
+
aria-haspopup="listbox"
|
|
459
|
+
aria-expanded="false"
|
|
460
|
+
aria-labelledby="cozySelectLabelHover"
|
|
461
|
+
class="fd-select__control is-placeholder is-hover"
|
|
462
|
+
value="Select an option"
|
|
463
|
+
tabindex="0">
|
|
464
|
+
<span class="fd-select__text-content">Select an option</span>
|
|
465
|
+
|
|
466
|
+
<span
|
|
467
|
+
role="button"
|
|
468
|
+
tabindex="-1"
|
|
469
|
+
aria-label="Selection options"
|
|
470
|
+
title="Selection options"
|
|
471
|
+
class="fd-button fd-button--transparent fd-select__button">
|
|
472
|
+
<i class="sap-icon--slim-arrow-down" role="presentation" aria-hidden="true"></i>
|
|
473
|
+
</span>
|
|
474
|
+
</div>
|
|
475
|
+
</div>
|
|
476
|
+
</div>
|
|
477
|
+
|
|
478
|
+
<label class="fd-form-label" id="cozySelectLabelHoverBtn">Hover on Button, Placeholder text</label><div class="fd-popover">
|
|
479
|
+
<div class="fd-popover__control" aria-expanded="false" aria-haspopup="true">
|
|
480
|
+
<div class="fd-select">
|
|
481
|
+
<div
|
|
482
|
+
role="combobox"
|
|
483
|
+
aria-roledescription="Contains item list for selection"
|
|
484
|
+
aria-haspopup="listbox"
|
|
485
|
+
aria-expanded="false"
|
|
486
|
+
aria-labelledby="cozySelectLabelHoverBtn"
|
|
487
|
+
class="fd-select__control is-placeholder is-hover"
|
|
488
|
+
value="Select an option"
|
|
489
|
+
tabindex="0">
|
|
490
|
+
<span class="fd-select__text-content">Select an option</span>
|
|
491
|
+
|
|
492
|
+
<span
|
|
493
|
+
role="button"
|
|
494
|
+
tabindex="-1"
|
|
495
|
+
aria-label="Selection options"
|
|
496
|
+
title="Selection options"
|
|
497
|
+
class="fd-button fd-button--transparent fd-select__button is-hover">
|
|
498
|
+
<i class="sap-icon--slim-arrow-down" role="presentation" aria-hidden="true"></i>
|
|
499
|
+
</span>
|
|
500
|
+
</div>
|
|
501
|
+
</div>
|
|
502
|
+
</div>
|
|
503
|
+
|
|
504
|
+
<label class="fd-form-label" id="cozySelectLabelFocus">Focus, Placeholder text</label><div class="fd-popover">
|
|
505
|
+
<div class="fd-popover__control" aria-expanded="false" aria-haspopup="true">
|
|
506
|
+
<div class="fd-select">
|
|
507
|
+
<div
|
|
508
|
+
role="combobox"
|
|
509
|
+
aria-roledescription="Contains item list for selection"
|
|
510
|
+
aria-haspopup="listbox"
|
|
511
|
+
aria-expanded="false"
|
|
512
|
+
aria-labelledby="cozySelectLabelFocus"
|
|
513
|
+
class="fd-select__control is-placeholder is-focus"
|
|
514
|
+
value="Select an option"
|
|
515
|
+
tabindex="0">
|
|
516
|
+
<span class="fd-select__text-content">Select an option</span>
|
|
517
|
+
|
|
518
|
+
<span
|
|
519
|
+
role="button"
|
|
520
|
+
tabindex="-1"
|
|
521
|
+
aria-label="Selection options"
|
|
522
|
+
title="Selection options"
|
|
523
|
+
class="fd-button fd-button--transparent fd-select__button">
|
|
524
|
+
<i class="sap-icon--slim-arrow-down" role="presentation" aria-hidden="true"></i>
|
|
525
|
+
</span>
|
|
526
|
+
</div>
|
|
527
|
+
</div>
|
|
528
|
+
</div>
|
|
529
|
+
|
|
530
|
+
<label class="fd-form-label" id="cozySelectLabelExpanded">Expanded, Placeholder text</label><div class="fd-popover">
|
|
531
|
+
<div class="fd-popover__control" aria-expanded="false" aria-haspopup="true">
|
|
532
|
+
<div class="fd-select">
|
|
533
|
+
<div
|
|
534
|
+
role="combobox"
|
|
535
|
+
aria-roledescription="Contains item list for selection"
|
|
536
|
+
aria-haspopup="listbox"
|
|
537
|
+
aria-expanded="true"
|
|
538
|
+
aria-labelledby="cozySelectLabelExpanded"
|
|
539
|
+
class="fd-select__control is-placeholder is-expanded"
|
|
540
|
+
value="Select an option"
|
|
541
|
+
tabindex="0">
|
|
542
|
+
<span class="fd-select__text-content">Select an option</span>
|
|
543
|
+
|
|
544
|
+
<span
|
|
545
|
+
role="button"
|
|
546
|
+
tabindex="-1"
|
|
547
|
+
aria-label="Selection options"
|
|
548
|
+
title="Selection options"
|
|
549
|
+
class="fd-button fd-button--transparent fd-select__button">
|
|
550
|
+
<i class="sap-icon--slim-arrow-down" role="presentation" aria-hidden="true"></i>
|
|
551
|
+
</span>
|
|
552
|
+
</div>
|
|
553
|
+
</div>
|
|
554
|
+
</div>
|
|
555
|
+
|
|
556
|
+
<label class="fd-form-label" id="cozySelectLabelDisabled">In disabled state placeholder should not be visible</label><div class="fd-popover">
|
|
557
|
+
<div class="fd-popover__control" aria-expanded="false" aria-haspopup="true">
|
|
558
|
+
<div class="fd-select">
|
|
559
|
+
<div
|
|
560
|
+
role="combobox"
|
|
561
|
+
aria-roledescription="Contains item list for selection"
|
|
562
|
+
aria-haspopup="listbox"
|
|
563
|
+
aria-expanded="false"
|
|
564
|
+
aria-disabled="true"
|
|
565
|
+
aria-labelledby="cozySelectLabelDisabled"
|
|
566
|
+
class="fd-select__control is-placeholder is-disabled"
|
|
567
|
+
value="Select an option"
|
|
568
|
+
tabindex="0">
|
|
569
|
+
<span class="fd-select__text-content">Select an option</span>
|
|
570
|
+
|
|
571
|
+
<span
|
|
572
|
+
role="button"
|
|
573
|
+
tabindex="-1"
|
|
574
|
+
aria-label="Selection options"
|
|
575
|
+
title="Selection options"
|
|
576
|
+
class="fd-button fd-button--transparent fd-select__button">
|
|
577
|
+
<i class="sap-icon--slim-arrow-down" role="presentation" aria-hidden="true"></i>
|
|
578
|
+
</span>
|
|
579
|
+
</div>
|
|
580
|
+
</div>
|
|
581
|
+
</div>
|
|
582
|
+
|
|
583
|
+
<label class="fd-form-label" id="cozySelectLabelReadonly">In read-only state placeholder should not be visible</label><div class="fd-popover">
|
|
584
|
+
<div class="fd-popover__control" aria-expanded="false" aria-haspopup="true">
|
|
585
|
+
<div class="fd-select">
|
|
586
|
+
<div
|
|
587
|
+
role="combobox"
|
|
588
|
+
aria-roledescription="Contains item list for selection"
|
|
589
|
+
aria-haspopup="listbox"
|
|
590
|
+
aria-expanded="false"
|
|
591
|
+
aria-readonly="true"
|
|
592
|
+
aria-labelledby="cozySelectLabelReadonly"
|
|
593
|
+
class="fd-select__control is-placeholder is-readonly"
|
|
594
|
+
value="Select an option"
|
|
595
|
+
tabindex="0">
|
|
596
|
+
<span class="fd-select__text-content">Select an option</span>
|
|
597
|
+
|
|
598
|
+
<span
|
|
599
|
+
role="button"
|
|
600
|
+
tabindex="-1"
|
|
601
|
+
aria-label="Selection options"
|
|
602
|
+
title="Selection options"
|
|
603
|
+
class="fd-button fd-button--transparent fd-select__button">
|
|
604
|
+
<i class="sap-icon--slim-arrow-down" role="presentation" aria-hidden="true"></i>
|
|
605
|
+
</span>
|
|
606
|
+
</div>
|
|
607
|
+
</div>
|
|
608
|
+
</div>
|
|
609
|
+
|
|
610
|
+
<label class="fd-form-label" id="cozySelectLabelActiveSelected">Active, Selected Item</label><div class="fd-popover">
|
|
611
|
+
<div class="fd-popover__control" aria-expanded="true" aria-haspopup="true">
|
|
612
|
+
<div class="fd-select">
|
|
613
|
+
<div
|
|
614
|
+
role="combobox"
|
|
615
|
+
aria-roledescription="Contains item list for selection"
|
|
616
|
+
aria-haspopup="listbox"
|
|
617
|
+
aria-expanded="true"
|
|
618
|
+
aria-controls="cozyList"
|
|
619
|
+
aria-activedescendant="cozyListItem2"
|
|
620
|
+
aria-labelledby="cozySelectLabelActiveSelected"
|
|
621
|
+
class="fd-select__control"
|
|
622
|
+
value="List Item 1"
|
|
623
|
+
tabindex="0"
|
|
624
|
+
id="cozySelectActiveSelected"
|
|
625
|
+
onclick="
|
|
626
|
+
toggleElAttrs('h0C6A325', ['aria-hidden']);
|
|
627
|
+
toggleElAttrs('cozySelectActiveSelected', ['aria-expanded']);
|
|
628
|
+
">
|
|
629
|
+
<span class="fd-select__text-content">List item 2</span>
|
|
630
|
+
|
|
631
|
+
<span
|
|
632
|
+
role="button"
|
|
633
|
+
tabindex="-1"
|
|
634
|
+
aria-label="Selection options"
|
|
635
|
+
title="Selection options"
|
|
636
|
+
class="fd-button fd-button--transparent fd-select__button">
|
|
637
|
+
<i class="sap-icon--slim-arrow-down" role="presentation" aria-hidden="true"></i>
|
|
638
|
+
</span>
|
|
639
|
+
</div>
|
|
640
|
+
</div>
|
|
641
|
+
<div
|
|
642
|
+
aria-hidden="false"
|
|
643
|
+
class="fd-popover__body fd-popover__body--no-arrow fd-popover__body--dropdown"
|
|
644
|
+
id="h0C6A325"
|
|
645
|
+
>
|
|
646
|
+
<ul
|
|
647
|
+
id="cozyList"
|
|
648
|
+
role="listbox"
|
|
649
|
+
aria-roledescription="Contains all available items"
|
|
650
|
+
aria-labelledby="cozySelectLabelActiveSelected"
|
|
651
|
+
class="fd-list fd-list--dropdown"
|
|
652
|
+
>
|
|
653
|
+
<li
|
|
654
|
+
id="cozyListItem1"
|
|
655
|
+
role="option"
|
|
656
|
+
tabindex="0"
|
|
657
|
+
aria-selected="false"
|
|
658
|
+
aria-setsize="5"
|
|
659
|
+
aria-posinset="1"
|
|
660
|
+
class="fd-list__item">
|
|
661
|
+
<span class="fd-list__title">List item 1</span>
|
|
662
|
+
</li>
|
|
663
|
+
<li
|
|
664
|
+
id="cozyListItem2"
|
|
665
|
+
role="option"
|
|
666
|
+
tabindex="0"
|
|
667
|
+
aria-selected="true"
|
|
668
|
+
aria-setsize="5"
|
|
669
|
+
aria-posinset="2"
|
|
670
|
+
class="fd-list__item">
|
|
671
|
+
<span class="fd-list__title">List item 2</span>
|
|
672
|
+
</li>
|
|
673
|
+
<li
|
|
674
|
+
id="cozyListItem3"
|
|
675
|
+
role="option"
|
|
676
|
+
tabindex="0"
|
|
677
|
+
aria-selected="false"
|
|
678
|
+
aria-setsize="5"
|
|
679
|
+
aria-posinset="3"
|
|
680
|
+
class="fd-list__item">
|
|
681
|
+
<span class="fd-list__title">List item 3</span>
|
|
682
|
+
</li>
|
|
683
|
+
<li
|
|
684
|
+
id="cozyListItem4"
|
|
685
|
+
role="option"
|
|
686
|
+
tabindex="0"
|
|
687
|
+
aria-selected="false"
|
|
688
|
+
aria-setsize="5"
|
|
689
|
+
aria-posinset="4"
|
|
690
|
+
class="fd-list__item">
|
|
691
|
+
<span class="fd-list__title">List item 4</span>
|
|
692
|
+
</li>
|
|
693
|
+
<li
|
|
694
|
+
id="cozyListItem5"
|
|
695
|
+
role="option"
|
|
696
|
+
tabindex="0"
|
|
697
|
+
aria-selected="false"
|
|
698
|
+
aria-setsize="5"
|
|
699
|
+
aria-posinset="5"
|
|
700
|
+
class="fd-list__item">
|
|
701
|
+
<span class="fd-list__title">List item 5</span>
|
|
702
|
+
</li>
|
|
703
|
+
</ul>
|
|
704
|
+
</div>
|
|
705
|
+
```
|
|
706
|
+
|
|
707
|
+
### Mobile
|
|
708
|
+
|
|
709
|
+
Select is displayed in a full-screen dialog when viewed on mobile (and some tablet screens). The dialog displays a list where the first list item is pre-selected. To display select in mobile mode, wrap the select component in **Dialog** and **Bar** components.
|
|
710
|
+
|
|
711
|
+
```html
|
|
712
|
+
<div class="fd-dialog fd-dialog-docs-static fd-select-docs-max-height fd-dialog--active" id="select-dialog-example" aria-labelledby="mobileHeader mobileNote">
|
|
713
|
+
<div class="fd-dialog__content fd-dialog__content--mobile">
|
|
714
|
+
<header class="fd-dialog__header fd-toolbar fd-toolbar--clear">
|
|
715
|
+
<span class="fd-select__text-content" id="mobileHeader">Select Ingredient</span>
|
|
716
|
+
<span class="fd-toolbar__spacer"></span>
|
|
717
|
+
<button tabindex="-1" class="fd-button fd-button--transparent" aria-label="close">
|
|
718
|
+
<i class="sap-icon--decline"></i>
|
|
719
|
+
</button>
|
|
720
|
+
</header>
|
|
721
|
+
<div class="fd-dialog__body fd-dialog__body--no-vertical-padding">
|
|
722
|
+
<div class="fd-list__message fd-list__message--information" role="note" id="mobileNote">Choose one item</div>
|
|
723
|
+
<ul class="fd-list fd-list--has-message fd-list--dropdown fd-list--mobile" role="listbox" aria-roledescription="Contains all available items">
|
|
724
|
+
<li
|
|
725
|
+
id="twoColListItem1"
|
|
726
|
+
role="option"
|
|
727
|
+
tabindex="0"
|
|
728
|
+
aria-selected="false"
|
|
729
|
+
aria-setsize="8"
|
|
730
|
+
aria-posinset="1"
|
|
731
|
+
class="fd-list__item">
|
|
732
|
+
<span class="fd-list__title">Apple</span>
|
|
733
|
+
</li>
|
|
734
|
+
<li
|
|
735
|
+
id="twoColListItem2"
|
|
736
|
+
role="option"
|
|
737
|
+
tabindex="0"
|
|
738
|
+
aria-selected="true"
|
|
739
|
+
aria-setsize="8"
|
|
740
|
+
aria-posinset="2"
|
|
741
|
+
class="fd-list__item">
|
|
742
|
+
<span class="fd-list__title">Orange</span>
|
|
743
|
+
</li>
|
|
744
|
+
<li
|
|
745
|
+
id="twoColListItem3"
|
|
746
|
+
role="option"
|
|
747
|
+
tabindex="0"
|
|
748
|
+
aria-selected="false"
|
|
749
|
+
aria-setsize="8"
|
|
750
|
+
aria-posinset="3"
|
|
751
|
+
class="fd-list__item">
|
|
752
|
+
<span class="fd-list__title">Banana</span>
|
|
753
|
+
</li>
|
|
754
|
+
<li
|
|
755
|
+
id="twoColListItem4"
|
|
756
|
+
role="option"
|
|
757
|
+
tabindex="0"
|
|
758
|
+
aria-selected="false"
|
|
759
|
+
aria-setsize="8"
|
|
760
|
+
aria-posinset="4"
|
|
761
|
+
class="fd-list__item">
|
|
762
|
+
<span class="fd-list__title">Kiwi</span>
|
|
763
|
+
</li>
|
|
764
|
+
<li
|
|
765
|
+
id="twoColListItem5"
|
|
766
|
+
role="option"
|
|
767
|
+
tabindex="0"
|
|
768
|
+
aria-selected="false"
|
|
769
|
+
aria-setsize="8"
|
|
770
|
+
aria-posinset="5"
|
|
771
|
+
class="fd-list__item">
|
|
772
|
+
<span class="fd-list__title">Tomato</span>
|
|
773
|
+
</li>
|
|
774
|
+
<li
|
|
775
|
+
id="twoColListItem5"
|
|
776
|
+
role="option"
|
|
777
|
+
tabindex="0"
|
|
778
|
+
aria-selected="false"
|
|
779
|
+
aria-setsize="8"
|
|
780
|
+
aria-posinset="6"
|
|
781
|
+
class="fd-list__item">
|
|
782
|
+
<span class="fd-list__title">Onion</span>
|
|
783
|
+
</li>
|
|
784
|
+
<li
|
|
785
|
+
id="twoColListItem5"
|
|
786
|
+
role="option"
|
|
787
|
+
tabindex="0"
|
|
788
|
+
aria-selected="false"
|
|
789
|
+
aria-setsize="8"
|
|
790
|
+
aria-posinset="7"
|
|
791
|
+
class="fd-list__item">
|
|
792
|
+
<span class="fd-list__title">Spinach</span>
|
|
793
|
+
</li>
|
|
794
|
+
<li
|
|
795
|
+
id="twoColListItem5"
|
|
796
|
+
role="option"
|
|
797
|
+
tabindex="0"
|
|
798
|
+
aria-selected="false"
|
|
799
|
+
aria-setsize="8"
|
|
800
|
+
aria-posinset="8"
|
|
801
|
+
class="fd-list__item">
|
|
802
|
+
<span class="fd-list__title">Potato</span>
|
|
803
|
+
</li>
|
|
804
|
+
</ul>
|
|
805
|
+
</div>
|
|
806
|
+
</div>
|
|
807
|
+
</div>
|
|
808
|
+
```
|
|
809
|
+
|
|
810
|
+
### States
|
|
811
|
+
|
|
812
|
+
Select can be displayed in semantic states to communicate *Success*, *Error*, *Warning* or *Information* to the users. They can be displayed as either messages within the dropdown list, or by itself as a static message. To display select in various semantic states, add the class (shown below) to the \
|
|
813
|
+
|
|
814
|
+
```html
|
|
815
|
+
<div class="fd-container">
|
|
816
|
+
<div class="fd-row">
|
|
817
|
+
<div class="fd-col fd-col--3">
|
|
818
|
+
<label class="fd-form-label" id="successLabel">
|
|
819
|
+
Succes, Normal State, Placeholder
|
|
820
|
+
</label><div class="fd-popover">
|
|
821
|
+
<div class="fd-popover__control">
|
|
822
|
+
<div class="fd-select">
|
|
823
|
+
<div
|
|
824
|
+
role="combobox"
|
|
825
|
+
aria-roledescription="Contains item list for selection"
|
|
826
|
+
aria-haspopup="listbox"
|
|
827
|
+
aria-expanded="false"
|
|
828
|
+
aria-labelledby="successLabel"
|
|
829
|
+
class="fd-select__control is-success is-placeholder"
|
|
830
|
+
value="Select an option"
|
|
831
|
+
tabindex="0">
|
|
832
|
+
<span class="fd-select__text-content">Select an option</span>
|
|
833
|
+
|
|
834
|
+
<span
|
|
835
|
+
role="button"
|
|
836
|
+
tabindex="-1"
|
|
837
|
+
aria-label="Selection options"
|
|
838
|
+
title="Selection options"
|
|
839
|
+
class="fd-button fd-button--transparent fd-select__button">
|
|
840
|
+
<i class="sap-icon--slim-arrow-down" role="presentation" aria-hidden="true"></i>
|
|
841
|
+
</span>
|
|
842
|
+
</div>
|
|
843
|
+
</div>
|
|
844
|
+
</div>
|
|
845
|
+
</div>
|
|
846
|
+
<div class="fd-col fd-col--3">
|
|
847
|
+
<label class="fd-form-label" id="errorLabel">
|
|
848
|
+
Error, Normal State, Placeholder
|
|
849
|
+
</label><div class="fd-popover">
|
|
850
|
+
<div class="fd-popover__control">
|
|
851
|
+
<div class="fd-select">
|
|
852
|
+
<div
|
|
853
|
+
role="combobox"
|
|
854
|
+
aria-roledescription="Contains item list for selection"
|
|
855
|
+
aria-haspopup="listbox"
|
|
856
|
+
aria-expanded="false"
|
|
857
|
+
aria-labelledby="errorLabel"
|
|
858
|
+
class="fd-select__control is-error is-placeholder"
|
|
859
|
+
value="Select an option"
|
|
860
|
+
tabindex="0">
|
|
861
|
+
<span class="fd-select__text-content">Select an option</span>
|
|
862
|
+
|
|
863
|
+
<span
|
|
864
|
+
role="button"
|
|
865
|
+
tabindex="-1"
|
|
866
|
+
aria-label="Selection options"
|
|
867
|
+
title="Selection options"
|
|
868
|
+
class="fd-button fd-button--transparent fd-select__button">
|
|
869
|
+
<i class="sap-icon--slim-arrow-down" role="presentation" aria-hidden="true"></i>
|
|
870
|
+
</span>
|
|
871
|
+
</div>
|
|
872
|
+
</div>
|
|
873
|
+
|
|
874
|
+
</div>
|
|
875
|
+
</div>
|
|
876
|
+
</div>
|
|
877
|
+
<div class="fd-col fd-col--3">
|
|
878
|
+
<label class="fd-form-label" id="warningLabel">
|
|
879
|
+
Warning, Normal State, Placeholder
|
|
880
|
+
</label><div class="fd-popover">
|
|
881
|
+
<div class="fd-popover__control">
|
|
882
|
+
<div class="fd-select">
|
|
883
|
+
<div
|
|
884
|
+
role="combobox"
|
|
885
|
+
aria-roledescription="Contains item list for selection"
|
|
886
|
+
aria-haspopup="listbox"
|
|
887
|
+
aria-expanded="false"
|
|
888
|
+
aria-labelledby="warningLabel"
|
|
889
|
+
class="fd-select__control is-warning is-placeholder"
|
|
890
|
+
value="Select an option"
|
|
891
|
+
tabindex="0">
|
|
892
|
+
<span class="fd-select__text-content">Select an option</span>
|
|
893
|
+
|
|
894
|
+
<span
|
|
895
|
+
role="button"
|
|
896
|
+
tabindex="-1"
|
|
897
|
+
aria-label="Selection options"
|
|
898
|
+
title="Selection options"
|
|
899
|
+
class="fd-button fd-button--transparent fd-select__button">
|
|
900
|
+
<i class="sap-icon--slim-arrow-down" role="presentation" aria-hidden="true"></i>
|
|
901
|
+
</span>
|
|
902
|
+
</div>
|
|
903
|
+
</div>
|
|
904
|
+
|
|
905
|
+
</div>
|
|
906
|
+
</div>
|
|
907
|
+
</div>
|
|
908
|
+
<div class="fd-col fd-col--3">
|
|
909
|
+
<label class="fd-form-label" id="infoLabel">
|
|
910
|
+
Information, Normal State, Placeholder
|
|
911
|
+
</label><div class="fd-popover">
|
|
912
|
+
<div class="fd-popover__control">
|
|
913
|
+
<div class="fd-select">
|
|
914
|
+
<div
|
|
915
|
+
role="combobox"
|
|
916
|
+
aria-roledescription="Contains item list for selection"
|
|
917
|
+
aria-haspopup="listbox"
|
|
918
|
+
aria-expanded="false"
|
|
919
|
+
aria-labelledby="infoLabel"
|
|
920
|
+
class="fd-select__control is-information is-placeholder"
|
|
921
|
+
value="Select an option"
|
|
922
|
+
tabindex="0">
|
|
923
|
+
<span class="fd-select__text-content">Select an option</span>
|
|
924
|
+
|
|
925
|
+
<span
|
|
926
|
+
role="button"
|
|
927
|
+
tabindex="-1"
|
|
928
|
+
aria-label="Selection options"
|
|
929
|
+
title="Selection options"
|
|
930
|
+
class="fd-button fd-button--transparent fd-select__button">
|
|
931
|
+
<i class="sap-icon--slim-arrow-down" role="presentation" aria-hidden="true"></i>
|
|
932
|
+
</span>
|
|
933
|
+
</div>
|
|
934
|
+
</div>
|
|
935
|
+
</div>
|
|
936
|
+
</div>
|
|
937
|
+
|
|
938
|
+
<div class="fd-container">
|
|
939
|
+
<div class="fd-row">
|
|
940
|
+
<div class="fd-col fd-col--3">
|
|
941
|
+
<label class="fd-form-label" id="successLabelH">
|
|
942
|
+
Succes, Hover State, Placeholder
|
|
943
|
+
</label><div class="fd-popover">
|
|
944
|
+
<div class="fd-popover__control">
|
|
945
|
+
<div class="fd-select">
|
|
946
|
+
<div
|
|
947
|
+
role="combobox"
|
|
948
|
+
aria-roledescription="Contains item list for selection"
|
|
949
|
+
aria-haspopup="listbox"
|
|
950
|
+
aria-expanded="false"
|
|
951
|
+
aria-labelledby="successLabelH"
|
|
952
|
+
class="fd-select__control is-success is-hover is-placeholder"
|
|
953
|
+
value="Select an option"
|
|
954
|
+
tabindex="0">
|
|
955
|
+
<span class="fd-select__text-content">Select an option</span>
|
|
956
|
+
|
|
957
|
+
<span
|
|
958
|
+
role="button"
|
|
959
|
+
tabindex="-1"
|
|
960
|
+
aria-label="Selection options"
|
|
961
|
+
title="Selection options"
|
|
962
|
+
class="fd-button fd-button--transparent fd-select__button">
|
|
963
|
+
<i class="sap-icon--slim-arrow-down" role="presentation" aria-hidden="true"></i>
|
|
964
|
+
</span>
|
|
965
|
+
</div>
|
|
966
|
+
</div>
|
|
967
|
+
</div>
|
|
968
|
+
</div>
|
|
969
|
+
<div class="fd-col fd-col--3">
|
|
970
|
+
<label class="fd-form-label" id="errorLabelH">
|
|
971
|
+
Error, Hover State, Placeholder
|
|
972
|
+
</label><div class="fd-popover">
|
|
973
|
+
<div class="fd-popover__control">
|
|
974
|
+
<div class="fd-select">
|
|
975
|
+
<div
|
|
976
|
+
role="combobox"
|
|
977
|
+
aria-roledescription="Contains item list for selection"
|
|
978
|
+
aria-haspopup="listbox"
|
|
979
|
+
aria-expanded="false"
|
|
980
|
+
aria-labelledby="errorLabelH"
|
|
981
|
+
class="fd-select__control is-error is-hover is-placeholder"
|
|
982
|
+
value="Select an option"
|
|
983
|
+
tabindex="0">
|
|
984
|
+
<span class="fd-select__text-content">Select an option</span>
|
|
985
|
+
|
|
986
|
+
<span
|
|
987
|
+
role="button"
|
|
988
|
+
tabindex="-1"
|
|
989
|
+
aria-label="Selection options"
|
|
990
|
+
title="Selection options"
|
|
991
|
+
class="fd-button fd-button--transparent fd-select__button">
|
|
992
|
+
<i class="sap-icon--slim-arrow-down" role="presentation" aria-hidden="true"></i>
|
|
993
|
+
</span>
|
|
994
|
+
</div>
|
|
995
|
+
</div>
|
|
996
|
+
|
|
997
|
+
</div>
|
|
998
|
+
</div>
|
|
999
|
+
</div>
|
|
1000
|
+
<div class="fd-col fd-col--3">
|
|
1001
|
+
<label class="fd-form-label" id="warningLabelH">
|
|
1002
|
+
Warning, Hover State, Placeholder
|
|
1003
|
+
</label><div class="fd-popover">
|
|
1004
|
+
<div class="fd-popover__control">
|
|
1005
|
+
<div class="fd-select">
|
|
1006
|
+
<div
|
|
1007
|
+
role="combobox"
|
|
1008
|
+
aria-roledescription="Contains item list for selection"
|
|
1009
|
+
aria-haspopup="listbox"
|
|
1010
|
+
aria-expanded="false"
|
|
1011
|
+
aria-labelledby="warningLabelH"
|
|
1012
|
+
class="fd-select__control is-warning is-hover is-placeholder"
|
|
1013
|
+
value="Select an option"
|
|
1014
|
+
tabindex="0">
|
|
1015
|
+
<span class="fd-select__text-content">Select an option</span>
|
|
1016
|
+
|
|
1017
|
+
<span
|
|
1018
|
+
role="button"
|
|
1019
|
+
tabindex="-1"
|
|
1020
|
+
aria-label="Selection options"
|
|
1021
|
+
title="Selection options"
|
|
1022
|
+
class="fd-button fd-button--transparent fd-select__button">
|
|
1023
|
+
<i class="sap-icon--slim-arrow-down" role="presentation" aria-hidden="true"></i>
|
|
1024
|
+
</span>
|
|
1025
|
+
</div>
|
|
1026
|
+
</div>
|
|
1027
|
+
|
|
1028
|
+
</div>
|
|
1029
|
+
</div>
|
|
1030
|
+
</div>
|
|
1031
|
+
<div class="fd-col fd-col--3">
|
|
1032
|
+
<label class="fd-form-label" id="infoLabelH">
|
|
1033
|
+
Information, Hover State, Placeholder
|
|
1034
|
+
</label><div class="fd-popover">
|
|
1035
|
+
<div class="fd-popover__control">
|
|
1036
|
+
<div class="fd-select">
|
|
1037
|
+
<div
|
|
1038
|
+
role="combobox"
|
|
1039
|
+
aria-roledescription="Contains item list for selection"
|
|
1040
|
+
aria-haspopup="listbox"
|
|
1041
|
+
aria-expanded="false"
|
|
1042
|
+
aria-labelledby="infoLabelH"
|
|
1043
|
+
class="fd-select__control is-information is-hover is-placeholder"
|
|
1044
|
+
value="Select an option"
|
|
1045
|
+
tabindex="0">
|
|
1046
|
+
<span class="fd-select__text-content">Select an option</span>
|
|
1047
|
+
|
|
1048
|
+
<span
|
|
1049
|
+
role="button"
|
|
1050
|
+
tabindex="-1"
|
|
1051
|
+
aria-label="Selection options"
|
|
1052
|
+
title="Selection options"
|
|
1053
|
+
class="fd-button fd-button--transparent fd-select__button">
|
|
1054
|
+
<i class="sap-icon--slim-arrow-down" role="presentation" aria-hidden="true"></i>
|
|
1055
|
+
</span>
|
|
1056
|
+
</div>
|
|
1057
|
+
</div>
|
|
1058
|
+
</div>
|
|
1059
|
+
</div>
|
|
1060
|
+
|
|
1061
|
+
<div class="fd-container">
|
|
1062
|
+
<div class="fd-row">
|
|
1063
|
+
<div class="fd-col fd-col--3">
|
|
1064
|
+
<label class="fd-form-label" id="successLabelHB">
|
|
1065
|
+
Succes, Button Hover State, Placeholder
|
|
1066
|
+
</label><div class="fd-popover">
|
|
1067
|
+
<div class="fd-popover__control">
|
|
1068
|
+
<div class="fd-select">
|
|
1069
|
+
<div
|
|
1070
|
+
role="combobox"
|
|
1071
|
+
aria-roledescription="Contains item list for selection"
|
|
1072
|
+
aria-haspopup="listbox"
|
|
1073
|
+
aria-expanded="false"
|
|
1074
|
+
aria-labelledby="successLabelHB"
|
|
1075
|
+
class="fd-select__control is-success is-hover is-placeholder"
|
|
1076
|
+
value="Select an option"
|
|
1077
|
+
tabindex="0">
|
|
1078
|
+
<span class="fd-select__text-content">Select an option</span>
|
|
1079
|
+
|
|
1080
|
+
<span
|
|
1081
|
+
role="button"
|
|
1082
|
+
tabindex="-1"
|
|
1083
|
+
aria-label="Selection options"
|
|
1084
|
+
title="Selection options"
|
|
1085
|
+
class="fd-button fd-button--transparent fd-select__button is-hover">
|
|
1086
|
+
<i class="sap-icon--slim-arrow-down" role="presentation" aria-hidden="true"></i>
|
|
1087
|
+
</span>
|
|
1088
|
+
</div>
|
|
1089
|
+
</div>
|
|
1090
|
+
</div>
|
|
1091
|
+
</div>
|
|
1092
|
+
<div class="fd-col fd-col--3">
|
|
1093
|
+
<label class="fd-form-label" id="errorLabelHB">
|
|
1094
|
+
Error, Button Hover State, Placeholder
|
|
1095
|
+
</label><div class="fd-popover">
|
|
1096
|
+
<div class="fd-popover__control">
|
|
1097
|
+
<div class="fd-select">
|
|
1098
|
+
<div
|
|
1099
|
+
role="combobox"
|
|
1100
|
+
aria-roledescription="Contains item list for selection"
|
|
1101
|
+
aria-haspopup="listbox"
|
|
1102
|
+
aria-expanded="false"
|
|
1103
|
+
aria-labelledby="errorLabelHB"
|
|
1104
|
+
class="fd-select__control is-error is-hover is-placeholder"
|
|
1105
|
+
value="Select an option"
|
|
1106
|
+
tabindex="0">
|
|
1107
|
+
<span class="fd-select__text-content">Select an option</span>
|
|
1108
|
+
|
|
1109
|
+
<span
|
|
1110
|
+
role="button"
|
|
1111
|
+
tabindex="-1"
|
|
1112
|
+
aria-label="Selection options"
|
|
1113
|
+
title="Selection options"
|
|
1114
|
+
class="fd-button fd-button--transparent fd-select__button is-hover">
|
|
1115
|
+
<i class="sap-icon--slim-arrow-down" role="presentation" aria-hidden="true"></i>
|
|
1116
|
+
</span>
|
|
1117
|
+
</div>
|
|
1118
|
+
</div>
|
|
1119
|
+
|
|
1120
|
+
</div>
|
|
1121
|
+
</div>
|
|
1122
|
+
</div>
|
|
1123
|
+
<div class="fd-col fd-col--3">
|
|
1124
|
+
<label class="fd-form-label" id="warningLabelHB">
|
|
1125
|
+
Warning, Button Hover State, Placeholder
|
|
1126
|
+
</label><div class="fd-popover">
|
|
1127
|
+
<div class="fd-popover__control">
|
|
1128
|
+
<div class="fd-select">
|
|
1129
|
+
<div
|
|
1130
|
+
role="combobox"
|
|
1131
|
+
aria-roledescription="Contains item list for selection"
|
|
1132
|
+
aria-haspopup="listbox"
|
|
1133
|
+
aria-expanded="false"
|
|
1134
|
+
aria-labelledby="warningLabelHB"
|
|
1135
|
+
class="fd-select__control is-warning is-hover is-placeholder"
|
|
1136
|
+
value="Select an option"
|
|
1137
|
+
tabindex="0">
|
|
1138
|
+
<span class="fd-select__text-content">Select an option</span>
|
|
1139
|
+
|
|
1140
|
+
<span
|
|
1141
|
+
role="button"
|
|
1142
|
+
tabindex="-1"
|
|
1143
|
+
aria-label="Selection options"
|
|
1144
|
+
title="Selection options"
|
|
1145
|
+
class="fd-button fd-button--transparent fd-select__button is-hover">
|
|
1146
|
+
<i class="sap-icon--slim-arrow-down" role="presentation" aria-hidden="true"></i>
|
|
1147
|
+
</span>
|
|
1148
|
+
</div>
|
|
1149
|
+
</div>
|
|
1150
|
+
|
|
1151
|
+
</div>
|
|
1152
|
+
</div>
|
|
1153
|
+
</div>
|
|
1154
|
+
<div class="fd-col fd-col--3">
|
|
1155
|
+
<label class="fd-form-label" id="infoLabelHB">
|
|
1156
|
+
Information, Button Hover State, Placeholder
|
|
1157
|
+
</label><div class="fd-popover">
|
|
1158
|
+
<div class="fd-popover__control">
|
|
1159
|
+
<div class="fd-select">
|
|
1160
|
+
<div
|
|
1161
|
+
role="combobox"
|
|
1162
|
+
aria-roledescription="Contains item list for selection"
|
|
1163
|
+
aria-haspopup="listbox"
|
|
1164
|
+
aria-expanded="false"
|
|
1165
|
+
aria-labelledby="infoLabelHB"
|
|
1166
|
+
class="fd-select__control is-information is-hover is-placeholder"
|
|
1167
|
+
value="Select an option"
|
|
1168
|
+
tabindex="0">
|
|
1169
|
+
<span class="fd-select__text-content">Select an option</span>
|
|
1170
|
+
|
|
1171
|
+
<span
|
|
1172
|
+
role="button"
|
|
1173
|
+
tabindex="-1"
|
|
1174
|
+
aria-label="Selection options"
|
|
1175
|
+
title="Selection options"
|
|
1176
|
+
class="fd-button fd-button--transparent fd-select__button is-hover">
|
|
1177
|
+
<i class="sap-icon--slim-arrow-down" role="presentation" aria-hidden="true"></i>
|
|
1178
|
+
</span>
|
|
1179
|
+
</div>
|
|
1180
|
+
</div>
|
|
1181
|
+
</div>
|
|
1182
|
+
</div>
|
|
1183
|
+
|
|
1184
|
+
<div class="fd-container">
|
|
1185
|
+
<div class="fd-row">
|
|
1186
|
+
<div class="fd-col fd-col--3">
|
|
1187
|
+
<label class="fd-form-label" id="successLabelF">
|
|
1188
|
+
Succes, Focus State, Placeholder
|
|
1189
|
+
</label><div class="fd-popover">
|
|
1190
|
+
<div class="fd-popover__control">
|
|
1191
|
+
<div class="fd-select">
|
|
1192
|
+
<div
|
|
1193
|
+
role="combobox"
|
|
1194
|
+
aria-roledescription="Contains item list for selection"
|
|
1195
|
+
aria-haspopup="listbox"
|
|
1196
|
+
aria-expanded="false"
|
|
1197
|
+
aria-labelledby="successLabelF"
|
|
1198
|
+
class="fd-select__control is-success is-focus is-placeholder"
|
|
1199
|
+
value="Select an option"
|
|
1200
|
+
tabindex="0">
|
|
1201
|
+
<span class="fd-select__text-content">Select an option</span>
|
|
1202
|
+
|
|
1203
|
+
<span
|
|
1204
|
+
role="button"
|
|
1205
|
+
tabindex="-1"
|
|
1206
|
+
aria-label="Selection options"
|
|
1207
|
+
title="Selection options"
|
|
1208
|
+
class="fd-button fd-button--transparent fd-select__button">
|
|
1209
|
+
<i class="sap-icon--slim-arrow-down" role="presentation" aria-hidden="true"></i>
|
|
1210
|
+
</span>
|
|
1211
|
+
</div>
|
|
1212
|
+
</div>
|
|
1213
|
+
</div>
|
|
1214
|
+
</div>
|
|
1215
|
+
<div class="fd-col fd-col--3">
|
|
1216
|
+
<label class="fd-form-label" id="errorLabelF">
|
|
1217
|
+
Error, Focus State, Placeholder
|
|
1218
|
+
</label><div class="fd-popover">
|
|
1219
|
+
<div class="fd-popover__control">
|
|
1220
|
+
<div class="fd-select">
|
|
1221
|
+
<div
|
|
1222
|
+
role="combobox"
|
|
1223
|
+
aria-roledescription="Contains item list for selection"
|
|
1224
|
+
aria-haspopup="listbox"
|
|
1225
|
+
aria-expanded="false"
|
|
1226
|
+
aria-labelledby="errorLabelF"
|
|
1227
|
+
class="fd-select__control is-error is-focus is-placeholder"
|
|
1228
|
+
value="Select an option"
|
|
1229
|
+
tabindex="0">
|
|
1230
|
+
<span class="fd-select__text-content">Select an option</span>
|
|
1231
|
+
|
|
1232
|
+
<span
|
|
1233
|
+
role="button"
|
|
1234
|
+
tabindex="-1"
|
|
1235
|
+
aria-label="Selection options"
|
|
1236
|
+
title="Selection options"
|
|
1237
|
+
class="fd-button fd-button--transparent fd-select__button">
|
|
1238
|
+
<i class="sap-icon--slim-arrow-down" role="presentation" aria-hidden="true"></i>
|
|
1239
|
+
</span>
|
|
1240
|
+
</div>
|
|
1241
|
+
</div>
|
|
1242
|
+
|
|
1243
|
+
</div>
|
|
1244
|
+
</div>
|
|
1245
|
+
</div>
|
|
1246
|
+
<div class="fd-col fd-col--3">
|
|
1247
|
+
<label class="fd-form-label" id="warningLabelF">
|
|
1248
|
+
Warning, Focus State, Placeholder
|
|
1249
|
+
</label><div class="fd-popover">
|
|
1250
|
+
<div class="fd-popover__control">
|
|
1251
|
+
<div class="fd-select">
|
|
1252
|
+
<div
|
|
1253
|
+
role="combobox"
|
|
1254
|
+
aria-roledescription="Contains item list for selection"
|
|
1255
|
+
aria-haspopup="listbox"
|
|
1256
|
+
aria-expanded="false"
|
|
1257
|
+
aria-labelledby="warningLabelF"
|
|
1258
|
+
class="fd-select__control is-warning is-focus is-placeholder"
|
|
1259
|
+
value="Select an option"
|
|
1260
|
+
tabindex="0">
|
|
1261
|
+
<span class="fd-select__text-content">Select an option</span>
|
|
1262
|
+
|
|
1263
|
+
<span
|
|
1264
|
+
role="button"
|
|
1265
|
+
tabindex="-1"
|
|
1266
|
+
aria-label="Selection options"
|
|
1267
|
+
title="Selection options"
|
|
1268
|
+
class="fd-button fd-button--transparent fd-select__button">
|
|
1269
|
+
<i class="sap-icon--slim-arrow-down" role="presentation" aria-hidden="true"></i>
|
|
1270
|
+
</span>
|
|
1271
|
+
</div>
|
|
1272
|
+
</div>
|
|
1273
|
+
|
|
1274
|
+
</div>
|
|
1275
|
+
</div>
|
|
1276
|
+
</div>
|
|
1277
|
+
<div class="fd-col fd-col--3">
|
|
1278
|
+
<label class="fd-form-label" id="infoLabelF">
|
|
1279
|
+
Information, Focus State, Placeholder
|
|
1280
|
+
</label><div class="fd-popover">
|
|
1281
|
+
<div class="fd-popover__control">
|
|
1282
|
+
<div class="fd-select">
|
|
1283
|
+
<div
|
|
1284
|
+
role="combobox"
|
|
1285
|
+
aria-roledescription="Contains item list for selection"
|
|
1286
|
+
aria-haspopup="listbox"
|
|
1287
|
+
aria-expanded="false"
|
|
1288
|
+
aria-labelledby="infoLabelF"
|
|
1289
|
+
class="fd-select__control is-information is-focus is-placeholder"
|
|
1290
|
+
value="Select an option"
|
|
1291
|
+
tabindex="0">
|
|
1292
|
+
<span class="fd-select__text-content">Select an option</span>
|
|
1293
|
+
|
|
1294
|
+
<span
|
|
1295
|
+
role="button"
|
|
1296
|
+
tabindex="-1"
|
|
1297
|
+
aria-label="Selection options"
|
|
1298
|
+
title="Selection options"
|
|
1299
|
+
class="fd-button fd-button--transparent fd-select__button">
|
|
1300
|
+
<i class="sap-icon--slim-arrow-down" role="presentation" aria-hidden="true"></i>
|
|
1301
|
+
</span>
|
|
1302
|
+
</div>
|
|
1303
|
+
</div>
|
|
1304
|
+
</div>
|
|
1305
|
+
</div>
|
|
1306
|
+
|
|
1307
|
+
<div class="fd-container">
|
|
1308
|
+
<div class="fd-row">
|
|
1309
|
+
<div class="fd-col fd-col--3">
|
|
1310
|
+
<label class="fd-form-label" id="successLabelDropdown">
|
|
1311
|
+
Select an option
|
|
1312
|
+
</label><div class="fd-popover">
|
|
1313
|
+
<div class="fd-popover__control" aria-expanded="true" aria-haspopup="true">
|
|
1314
|
+
<div class="fd-select">
|
|
1315
|
+
<div
|
|
1316
|
+
role="combobox"
|
|
1317
|
+
aria-roledescription="Contains item list for selection"
|
|
1318
|
+
aria-haspopup="listbox"
|
|
1319
|
+
aria-expanded="true"
|
|
1320
|
+
aria-controls="successList"
|
|
1321
|
+
aria-activedescendant="successListItem2"
|
|
1322
|
+
aria-labelledby="successLabelDropdown"
|
|
1323
|
+
class="fd-select__control is-success"
|
|
1324
|
+
tabindex="0"
|
|
1325
|
+
id="successSelectCombobox"
|
|
1326
|
+
onclick="
|
|
1327
|
+
toggleElAttrs('successPopoverDropdown', ['aria-hidden']);
|
|
1328
|
+
toggleElAttrs('successSelectCombobox', ['aria-expanded']);
|
|
1329
|
+
toggleElAttrs('successFormMessage', ['aria-hidden']);
|
|
1330
|
+
">
|
|
1331
|
+
<span class="fd-select__text-content">Notebook Basic 2</span>
|
|
1332
|
+
<span
|
|
1333
|
+
role="button"
|
|
1334
|
+
tabindex="-1"
|
|
1335
|
+
aria-label="Selection options"
|
|
1336
|
+
title="Selection options"
|
|
1337
|
+
class="fd-button fd-button--transparent fd-select__button">
|
|
1338
|
+
<i class="sap-icon--slim-arrow-down" role="presentation" aria-hidden="true"></i>
|
|
1339
|
+
</span>
|
|
1340
|
+
</div>
|
|
1341
|
+
</div>
|
|
1342
|
+
<div
|
|
1343
|
+
class="fd-popover__body fd-popover__body--no-arrow fd-popover__body--dropdown"
|
|
1344
|
+
aria-hidden="false"
|
|
1345
|
+
id="successPopoverDropdown">
|
|
1346
|
+
<div class="fd-list__message fd-list__message--success" id="successNote">success message</div>
|
|
1347
|
+
<ul
|
|
1348
|
+
id="successList"
|
|
1349
|
+
role="listbox"
|
|
1350
|
+
aria-roledescription="Contains all available items"
|
|
1351
|
+
aria-labelledby="successLabelDropdown successNote"
|
|
1352
|
+
class="fd-list fd-list--has-message fd-list--dropdown"
|
|
1353
|
+
>
|
|
1354
|
+
<li
|
|
1355
|
+
id="successListItem1"
|
|
1356
|
+
role="option"
|
|
1357
|
+
tabindex="0"
|
|
1358
|
+
aria-selected="false"
|
|
1359
|
+
aria-setsize="5"
|
|
1360
|
+
aria-posinset="1"
|
|
1361
|
+
class="fd-list__item">
|
|
1362
|
+
<span class="fd-list__title">Notebook Basic 1</span>
|
|
1363
|
+
</li>
|
|
1364
|
+
<li
|
|
1365
|
+
id="successListItem2"
|
|
1366
|
+
role="option"
|
|
1367
|
+
tabindex="0"
|
|
1368
|
+
aria-selected="true"
|
|
1369
|
+
aria-setsize="5"
|
|
1370
|
+
aria-posinset="2"
|
|
1371
|
+
class="fd-list__item">
|
|
1372
|
+
<span class="fd-list__title">Notebook Basic 2</span>
|
|
1373
|
+
</li>
|
|
1374
|
+
<li
|
|
1375
|
+
id="successListItem3"
|
|
1376
|
+
role="option"
|
|
1377
|
+
tabindex="0"
|
|
1378
|
+
aria-selected="false"
|
|
1379
|
+
aria-setsize="5"
|
|
1380
|
+
aria-posinset="3"
|
|
1381
|
+
class="fd-list__item">
|
|
1382
|
+
<span class="fd-list__title">Notebook Basic 3</span>
|
|
1383
|
+
</li>
|
|
1384
|
+
<li
|
|
1385
|
+
id="successListItem4"
|
|
1386
|
+
role="option"
|
|
1387
|
+
tabindex="0"
|
|
1388
|
+
aria-selected="false"
|
|
1389
|
+
aria-setsize="5"
|
|
1390
|
+
aria-posinset="4"
|
|
1391
|
+
class="fd-list__item">
|
|
1392
|
+
<span class="fd-list__title">Notebook Basic 4</span>
|
|
1393
|
+
</li>
|
|
1394
|
+
<li
|
|
1395
|
+
id="successListItem5"
|
|
1396
|
+
role="option"
|
|
1397
|
+
tabindex="0"
|
|
1398
|
+
aria-selected="false"
|
|
1399
|
+
aria-setsize="5"
|
|
1400
|
+
aria-posinset="5"
|
|
1401
|
+
class="fd-list__item">
|
|
1402
|
+
<span class="fd-list__title">Notebook Basic 5</span>
|
|
1403
|
+
</li>
|
|
1404
|
+
</ul>
|
|
1405
|
+
</div>
|
|
1406
|
+
<div id="successFormMessage" class="fd-popover__body fd-popover__body--input-message-group fd-popover__body--no-arrow" aria-hidden="true">
|
|
1407
|
+
<span class="fd-form-message fd-form-message--success">success message</span>
|
|
1408
|
+
</div>
|
|
1409
|
+
</div>
|
|
1410
|
+
</div>
|
|
1411
|
+
|
|
1412
|
+
<div class="fd-col fd-col--3">
|
|
1413
|
+
<label class="fd-form-label" id="errorLabelDropdown">
|
|
1414
|
+
Select an option
|
|
1415
|
+
</label><div class="fd-popover">
|
|
1416
|
+
<div class="fd-popover__control" aria-expanded="true" aria-haspopup="true">
|
|
1417
|
+
<div class="fd-select">
|
|
1418
|
+
<div
|
|
1419
|
+
role="combobox"
|
|
1420
|
+
aria-roledescription="Contains item list for selection"
|
|
1421
|
+
aria-haspopup="listbox"
|
|
1422
|
+
aria-expanded="true"
|
|
1423
|
+
aria-controls="errorList"
|
|
1424
|
+
aria-activedescendant="errorListItem2"
|
|
1425
|
+
aria-labelledby="errorLabelDropdown"
|
|
1426
|
+
class="fd-select__control is-error"
|
|
1427
|
+
tabindex="0"
|
|
1428
|
+
id="errorSelectCombobox"
|
|
1429
|
+
onclick="
|
|
1430
|
+
toggleElAttrs('errorPopoverDropdown', ['aria-hidden']);
|
|
1431
|
+
toggleElAttrs('errorSelectCombobox', ['aria-expanded']);
|
|
1432
|
+
toggleElAttrs('errorFormMessage', ['aria-hidden']);
|
|
1433
|
+
">
|
|
1434
|
+
<span class="fd-select__text-content">Notebook Basic 2</span>
|
|
1435
|
+
<span
|
|
1436
|
+
role="button"
|
|
1437
|
+
tabindex="-1"
|
|
1438
|
+
aria-label="Selection options"
|
|
1439
|
+
title="Selection options"
|
|
1440
|
+
class="fd-button fd-button--transparent fd-select__button">
|
|
1441
|
+
<i class="sap-icon--slim-arrow-down" role="presentation" aria-hidden="true"></i>
|
|
1442
|
+
</span>
|
|
1443
|
+
</div>
|
|
1444
|
+
</div>
|
|
1445
|
+
</div>
|
|
1446
|
+
<div
|
|
1447
|
+
class="fd-popover__body fd-popover__body--no-arrow fd-popover__body--dropdown"
|
|
1448
|
+
aria-hidden="false"
|
|
1449
|
+
id="errorPopoverDropdown">
|
|
1450
|
+
<div class="fd-list__message fd-list__message--error" id="errorNote">error message</div>
|
|
1451
|
+
<ul
|
|
1452
|
+
id="errorList"
|
|
1453
|
+
role="listbox"
|
|
1454
|
+
aria-roledescription="Contains all available items"
|
|
1455
|
+
aria-labelledby="errorLabelDropdown errorNote"
|
|
1456
|
+
class="fd-list fd-list--has-message fd-list--dropdown"
|
|
1457
|
+
>
|
|
1458
|
+
<li
|
|
1459
|
+
id="errorListItem1"
|
|
1460
|
+
role="option"
|
|
1461
|
+
tabindex="0"
|
|
1462
|
+
aria-selected="false"
|
|
1463
|
+
aria-setsize="5"
|
|
1464
|
+
aria-posinset="1"
|
|
1465
|
+
class="fd-list__item">
|
|
1466
|
+
<span class="fd-list__title">Notebook Basic 1</span>
|
|
1467
|
+
</li>
|
|
1468
|
+
<li
|
|
1469
|
+
id="errorListItem2"
|
|
1470
|
+
role="option"
|
|
1471
|
+
tabindex="0"
|
|
1472
|
+
aria-selected="true"
|
|
1473
|
+
aria-setsize="5"
|
|
1474
|
+
aria-posinset="2"
|
|
1475
|
+
class="fd-list__item">
|
|
1476
|
+
<span class="fd-list__title">Notebook Basic 2</span>
|
|
1477
|
+
</li>
|
|
1478
|
+
<li
|
|
1479
|
+
id="errorListItem3"
|
|
1480
|
+
role="option"
|
|
1481
|
+
tabindex="0"
|
|
1482
|
+
aria-selected="false"
|
|
1483
|
+
aria-setsize="5"
|
|
1484
|
+
aria-posinset="3"
|
|
1485
|
+
class="fd-list__item">
|
|
1486
|
+
<span class="fd-list__title">Notebook Basic 3</span>
|
|
1487
|
+
</li>
|
|
1488
|
+
<li
|
|
1489
|
+
id="errorListItem4"
|
|
1490
|
+
role="option"
|
|
1491
|
+
tabindex="0"
|
|
1492
|
+
aria-selected="false"
|
|
1493
|
+
aria-setsize="5"
|
|
1494
|
+
aria-posinset="4"
|
|
1495
|
+
class="fd-list__item">
|
|
1496
|
+
<span class="fd-list__title">Notebook Basic 4</span>
|
|
1497
|
+
</li>
|
|
1498
|
+
<li
|
|
1499
|
+
id="errorListItem5"
|
|
1500
|
+
role="option"
|
|
1501
|
+
tabindex="0"
|
|
1502
|
+
aria-selected="false"
|
|
1503
|
+
aria-setsize="5"
|
|
1504
|
+
aria-posinset="5"
|
|
1505
|
+
class="fd-list__item">
|
|
1506
|
+
<span class="fd-list__title">Notebook Basic 5</span>
|
|
1507
|
+
</li>
|
|
1508
|
+
</ul>
|
|
1509
|
+
</div>
|
|
1510
|
+
<div id="errorFormMessage" class="fd-popover__body fd-popover__body--input-message-group fd-popover__body--no-arrow" aria-hidden="true">
|
|
1511
|
+
<span class="fd-form-message fd-form-message--error">error message</span>
|
|
1512
|
+
</div>
|
|
1513
|
+
</div>
|
|
1514
|
+
|
|
1515
|
+
<div class="fd-col fd-col--3">
|
|
1516
|
+
<label class="fd-form-label" id="warningLabelDropdown">
|
|
1517
|
+
Select an option
|
|
1518
|
+
</label><div class="fd-popover">
|
|
1519
|
+
<div class="fd-popover__control" aria-expanded="true" aria-haspopup="true">
|
|
1520
|
+
<div class="fd-select">
|
|
1521
|
+
<div
|
|
1522
|
+
role="combobox"
|
|
1523
|
+
aria-roledescription="Contains item list for selection"
|
|
1524
|
+
aria-haspopup="listbox"
|
|
1525
|
+
aria-expanded="true"
|
|
1526
|
+
aria-controls="warningList"
|
|
1527
|
+
aria-activedescendant="warningListItem2"
|
|
1528
|
+
aria-labelledby="warningLabelDropdown"
|
|
1529
|
+
class="fd-select__control is-warning"
|
|
1530
|
+
tabindex="0"
|
|
1531
|
+
id="warningSelectCombobox"
|
|
1532
|
+
onclick="
|
|
1533
|
+
toggleElAttrs('warningPopoverDropdown', ['aria-hidden']);
|
|
1534
|
+
toggleElAttrs('warningSelectCombobox', ['aria-expanded']);
|
|
1535
|
+
toggleElAttrs('warningFormMessage', ['aria-hidden']);
|
|
1536
|
+
">
|
|
1537
|
+
<span class="fd-select__text-content">Notebook Basic 2</span>
|
|
1538
|
+
<span
|
|
1539
|
+
role="button"
|
|
1540
|
+
tabindex="-1"
|
|
1541
|
+
aria-label="Selection options"
|
|
1542
|
+
title="Selection options"
|
|
1543
|
+
class="fd-button fd-button--transparent fd-select__button">
|
|
1544
|
+
<i class="sap-icon--slim-arrow-down" role="presentation" aria-hidden="true"></i>
|
|
1545
|
+
</span>
|
|
1546
|
+
</div>
|
|
1547
|
+
</div>
|
|
1548
|
+
</div>
|
|
1549
|
+
<div
|
|
1550
|
+
class="fd-popover__body fd-popover__body--no-arrow fd-popover__body--dropdown"
|
|
1551
|
+
aria-hidden="false"
|
|
1552
|
+
id="warningPopoverDropdown">
|
|
1553
|
+
<div class="fd-list__message fd-list__message--warning" id="warningNote">warning message</div>
|
|
1554
|
+
<ul
|
|
1555
|
+
id="warningList"
|
|
1556
|
+
role="listbox"
|
|
1557
|
+
aria-roledescription="Contains all available items"
|
|
1558
|
+
aria-labelledby="warningLabelDropdown warningNote"
|
|
1559
|
+
class="fd-list fd-list--has-message fd-list--dropdown"
|
|
1560
|
+
>
|
|
1561
|
+
<li
|
|
1562
|
+
id="warningListItem1"
|
|
1563
|
+
role="option"
|
|
1564
|
+
tabindex="0"
|
|
1565
|
+
aria-selected="false"
|
|
1566
|
+
aria-setsize="5"
|
|
1567
|
+
aria-posinset="1"
|
|
1568
|
+
class="fd-list__item">
|
|
1569
|
+
<span class="fd-list__title">Notebook Basic 1</span>
|
|
1570
|
+
</li>
|
|
1571
|
+
<li
|
|
1572
|
+
id="warningListItem2"
|
|
1573
|
+
role="option"
|
|
1574
|
+
tabindex="0"
|
|
1575
|
+
aria-selected="true"
|
|
1576
|
+
aria-setsize="5"
|
|
1577
|
+
aria-posinset="2"
|
|
1578
|
+
class="fd-list__item">
|
|
1579
|
+
<span class="fd-list__title">Notebook Basic 2</span>
|
|
1580
|
+
</li>
|
|
1581
|
+
<li
|
|
1582
|
+
id="warningListItem3"
|
|
1583
|
+
role="option"
|
|
1584
|
+
tabindex="0"
|
|
1585
|
+
aria-selected="false"
|
|
1586
|
+
aria-setsize="5"
|
|
1587
|
+
aria-posinset="3"
|
|
1588
|
+
class="fd-list__item">
|
|
1589
|
+
<span class="fd-list__title">Notebook Basic 3</span>
|
|
1590
|
+
</li>
|
|
1591
|
+
<li
|
|
1592
|
+
id="warningListItem4"
|
|
1593
|
+
role="option"
|
|
1594
|
+
tabindex="0"
|
|
1595
|
+
aria-selected="false"
|
|
1596
|
+
aria-setsize="5"
|
|
1597
|
+
aria-posinset="4"
|
|
1598
|
+
class="fd-list__item">
|
|
1599
|
+
<span class="fd-list__title">Notebook Basic 4</span>
|
|
1600
|
+
</li>
|
|
1601
|
+
<li
|
|
1602
|
+
id="warningListItem5"
|
|
1603
|
+
role="option"
|
|
1604
|
+
tabindex="0"
|
|
1605
|
+
aria-selected="false"
|
|
1606
|
+
aria-setsize="5"
|
|
1607
|
+
aria-posinset="5"
|
|
1608
|
+
class="fd-list__item">
|
|
1609
|
+
<span class="fd-list__title">Notebook Basic 5</span>
|
|
1610
|
+
</li>
|
|
1611
|
+
</ul>
|
|
1612
|
+
</div>
|
|
1613
|
+
<div id="warningFormMessage" class="fd-popover__body fd-popover__body--input-message-group fd-popover__body--no-arrow" aria-hidden="true">
|
|
1614
|
+
<span class="fd-form-message fd-form-message--warning">warning message</span>
|
|
1615
|
+
</div>
|
|
1616
|
+
|
|
1617
|
+
<div class="fd-col fd-col--3">
|
|
1618
|
+
<label class="fd-form-label" id="informationLabelDropdown">
|
|
1619
|
+
Select an option
|
|
1620
|
+
</label><div class="fd-popover">
|
|
1621
|
+
<div class="fd-popover__control" aria-expanded="true" aria-haspopup="true">
|
|
1622
|
+
<div class="fd-select">
|
|
1623
|
+
<div
|
|
1624
|
+
role="combobox"
|
|
1625
|
+
aria-roledescription="Contains item list for selection"
|
|
1626
|
+
aria-haspopup="listbox"
|
|
1627
|
+
aria-expanded="true"
|
|
1628
|
+
aria-controls="informationList"
|
|
1629
|
+
aria-activedescendant="informationListItem2"
|
|
1630
|
+
aria-labelledby="informationLabelDropdown"
|
|
1631
|
+
class="fd-select__control is-information"
|
|
1632
|
+
tabindex="0"
|
|
1633
|
+
id="informationSelectCombobox"
|
|
1634
|
+
onclick="
|
|
1635
|
+
toggleElAttrs('informationPopoverDropdown', ['aria-hidden']);
|
|
1636
|
+
toggleElAttrs('informationSelectCombobox', ['aria-expanded']);
|
|
1637
|
+
toggleElAttrs('informationFormMessage', ['aria-hidden']);
|
|
1638
|
+
">
|
|
1639
|
+
<span class="fd-select__text-content">Notebook Basic 2</span>
|
|
1640
|
+
<span
|
|
1641
|
+
role="button"
|
|
1642
|
+
tabindex="-1"
|
|
1643
|
+
aria-label="Selection options"
|
|
1644
|
+
title="Selection options"
|
|
1645
|
+
class="fd-button fd-button--transparent fd-select__button">
|
|
1646
|
+
<i class="sap-icon--slim-arrow-down" role="presentation" aria-hidden="true"></i>
|
|
1647
|
+
</span>
|
|
1648
|
+
</div>
|
|
1649
|
+
</div>
|
|
1650
|
+
</div>
|
|
1651
|
+
<div
|
|
1652
|
+
class="fd-popover__body fd-popover__body--no-arrow fd-popover__body--dropdown"
|
|
1653
|
+
aria-hidden="false"
|
|
1654
|
+
id="informationPopoverDropdown">
|
|
1655
|
+
<div class="fd-list__message fd-list__message--information" id="informationNote">information message</div>
|
|
1656
|
+
<ul
|
|
1657
|
+
id="informationList"
|
|
1658
|
+
role="listbox"
|
|
1659
|
+
aria-roledescription="Contains all available items"
|
|
1660
|
+
aria-labelledby="informationLabelDropdown informationNote"
|
|
1661
|
+
class="fd-list fd-list--has-message fd-list--dropdown"
|
|
1662
|
+
>
|
|
1663
|
+
<li
|
|
1664
|
+
id="informationListItem1"
|
|
1665
|
+
role="option"
|
|
1666
|
+
tabindex="0"
|
|
1667
|
+
aria-selected="false"
|
|
1668
|
+
aria-setsize="5"
|
|
1669
|
+
aria-posinset="1"
|
|
1670
|
+
class="fd-list__item">
|
|
1671
|
+
<span class="fd-list__title">Notebook Basic 1</span>
|
|
1672
|
+
</li>
|
|
1673
|
+
<li
|
|
1674
|
+
id="informationListItem2"
|
|
1675
|
+
role="option"
|
|
1676
|
+
tabindex="0"
|
|
1677
|
+
aria-selected="true"
|
|
1678
|
+
aria-setsize="5"
|
|
1679
|
+
aria-posinset="2"
|
|
1680
|
+
class="fd-list__item">
|
|
1681
|
+
<span class="fd-list__title">Notebook Basic 2</span>
|
|
1682
|
+
</li>
|
|
1683
|
+
<li
|
|
1684
|
+
id="informationListItem3"
|
|
1685
|
+
role="option"
|
|
1686
|
+
tabindex="0"
|
|
1687
|
+
aria-selected="false"
|
|
1688
|
+
aria-setsize="5"
|
|
1689
|
+
aria-posinset="3"
|
|
1690
|
+
class="fd-list__item">
|
|
1691
|
+
<span class="fd-list__title">Notebook Basic 3</span>
|
|
1692
|
+
</li>
|
|
1693
|
+
<li
|
|
1694
|
+
id="informationListItem4"
|
|
1695
|
+
role="option"
|
|
1696
|
+
tabindex="0"
|
|
1697
|
+
aria-selected="false"
|
|
1698
|
+
aria-setsize="5"
|
|
1699
|
+
aria-posinset="4"
|
|
1700
|
+
class="fd-list__item">
|
|
1701
|
+
<span class="fd-list__title">Notebook Basic 4</span>
|
|
1702
|
+
</li>
|
|
1703
|
+
<li
|
|
1704
|
+
id="informationListItem5"
|
|
1705
|
+
role="option"
|
|
1706
|
+
tabindex="0"
|
|
1707
|
+
aria-selected="false"
|
|
1708
|
+
aria-setsize="5"
|
|
1709
|
+
aria-posinset="5"
|
|
1710
|
+
class="fd-list__item">
|
|
1711
|
+
<span class="fd-list__title">Notebook Basic 5</span>
|
|
1712
|
+
</li>
|
|
1713
|
+
</ul>
|
|
1714
|
+
</div>
|
|
1715
|
+
<div id="informationFormMessage" class="fd-popover__body fd-popover__body--input-message-group fd-popover__body--no-arrow" aria-hidden="true">
|
|
1716
|
+
<span class="fd-form-message fd-form-message--information">information message</span>
|
|
1717
|
+
</div>
|
|
1718
|
+
```
|
|
1719
|
+
|
|
1720
|
+
### Form item
|
|
1721
|
+
|
|
1722
|
+
When displaying select within a form, you can apply the \
|
|
1723
|
+
|
|
1724
|
+
```html
|
|
1725
|
+
<div class="fd-form-item">
|
|
1726
|
+
<label class="fd-form-label" id="formSelectLabel">Choose an option</label>
|
|
1727
|
+
<div class="fd-popover">
|
|
1728
|
+
<div class="fd-popover__control" aria-expanded="true" aria-haspopup="true">
|
|
1729
|
+
<div class="fd-select">
|
|
1730
|
+
<div
|
|
1731
|
+
role="combobox"
|
|
1732
|
+
aria-roledescription="Contains item list for selection"
|
|
1733
|
+
aria-haspopup="listbox"
|
|
1734
|
+
aria-expanded="true"
|
|
1735
|
+
aria-controls="formList"
|
|
1736
|
+
aria-activedescendant="formListItem2"
|
|
1737
|
+
aria-labelledby="formSelectLabel"
|
|
1738
|
+
class="fd-select__control"
|
|
1739
|
+
value="Notebook Basic 2"
|
|
1740
|
+
tabindex="0"
|
|
1741
|
+
id="formSelectCombobox"
|
|
1742
|
+
onclick="
|
|
1743
|
+
toggleElAttrs('formSelectPopoverBody', ['aria-hidden']);
|
|
1744
|
+
toggleElAttrs('formSelectCombobox', ['aria-expanded']);
|
|
1745
|
+
">
|
|
1746
|
+
<span class="fd-select__text-content">Notebook Basic 2</span>
|
|
1747
|
+
|
|
1748
|
+
<span
|
|
1749
|
+
role="button"
|
|
1750
|
+
tabindex="-1"
|
|
1751
|
+
aria-label="Selection options"
|
|
1752
|
+
title="Selection options"
|
|
1753
|
+
class="fd-button fd-button--transparent fd-select__button">
|
|
1754
|
+
<i class="sap-icon--slim-arrow-down" role="presentation" aria-hidden="true"></i>
|
|
1755
|
+
</span>
|
|
1756
|
+
</div>
|
|
1757
|
+
</div>
|
|
1758
|
+
<div
|
|
1759
|
+
aria-hidden="false"
|
|
1760
|
+
class="fd-popover__body fd-popover__body--no-arrow fd-popover__body--dropdown"
|
|
1761
|
+
id="formSelectPopoverBody">
|
|
1762
|
+
<ul
|
|
1763
|
+
id="formList"
|
|
1764
|
+
role="listbox"
|
|
1765
|
+
aria-roledescription="Contains all available items"
|
|
1766
|
+
aria-labelledby="formSelectLabel"
|
|
1767
|
+
class="fd-list fd-list--dropdown"
|
|
1768
|
+
>
|
|
1769
|
+
<li
|
|
1770
|
+
id="formListItem1"
|
|
1771
|
+
role="option"
|
|
1772
|
+
tabindex="0"
|
|
1773
|
+
aria-selected="false"
|
|
1774
|
+
aria-setsize="5"
|
|
1775
|
+
aria-posinset="1"
|
|
1776
|
+
class="fd-list__item">
|
|
1777
|
+
<span class="fd-list__title">Notebook Basic 1 Lorem ipsum dolor sit amet consectetur, adipisicing elit. Repellat, dolorum aspernatur. Nisi necessitatibus distinctio quidem quos numquam ipsum.</span>
|
|
1778
|
+
</li>
|
|
1779
|
+
<li
|
|
1780
|
+
id="formListItem2"
|
|
1781
|
+
role="option"
|
|
1782
|
+
tabindex="0"
|
|
1783
|
+
aria-selected="true"
|
|
1784
|
+
aria-setsize="5"
|
|
1785
|
+
aria-posinset="2"
|
|
1786
|
+
class="fd-list__item">
|
|
1787
|
+
<span class="fd-list__title">Notebook Basic 2</span>
|
|
1788
|
+
</li>
|
|
1789
|
+
<li
|
|
1790
|
+
id="formListItem3"
|
|
1791
|
+
role="option"
|
|
1792
|
+
tabindex="0"
|
|
1793
|
+
aria-selected="false"
|
|
1794
|
+
aria-setsize="5"
|
|
1795
|
+
aria-posinset="3"
|
|
1796
|
+
class="fd-list__item">
|
|
1797
|
+
<span class="fd-list__title">Notebook Basic 3</span>
|
|
1798
|
+
</li>
|
|
1799
|
+
<li
|
|
1800
|
+
id="formListItem4"
|
|
1801
|
+
role="option"
|
|
1802
|
+
tabindex="0"
|
|
1803
|
+
aria-selected="false"
|
|
1804
|
+
aria-setsize="5"
|
|
1805
|
+
aria-posinset="4"
|
|
1806
|
+
class="fd-list__item">
|
|
1807
|
+
<span class="fd-list__title">Notebook Basic 4</span>
|
|
1808
|
+
</li>
|
|
1809
|
+
<li
|
|
1810
|
+
id="formListItem5"
|
|
1811
|
+
role="option"
|
|
1812
|
+
tabindex="0"
|
|
1813
|
+
aria-selected="false"
|
|
1814
|
+
aria-setsize="5"
|
|
1815
|
+
aria-posinset="5"
|
|
1816
|
+
class="fd-list__item">
|
|
1817
|
+
<span class="fd-list__title">Notebook Basic 5</span>
|
|
1818
|
+
</li>
|
|
1819
|
+
</ul>
|
|
1820
|
+
</div>
|
|
1821
|
+
</div>
|
|
1822
|
+
```
|
|
1823
|
+
|
|
1824
|
+
### 2-column
|
|
1825
|
+
|
|
1826
|
+
Select can be displayed with two columns in the dropdown list view. The column width should be adjusted depending on the use case, but always with a default ration of 60% (first column) to 40% (second column). To display a second column, add the \
|
|
1827
|
+
|
|
1828
|
+
```html
|
|
1829
|
+
<label class="fd-form-label" id="twoColSelectLabel">Choose an option</label>
|
|
1830
|
+
<div class="fd-popover">
|
|
1831
|
+
<div class="fd-popover__control" aria-expanded="true" aria-haspopup="true">
|
|
1832
|
+
<div class="fd-select">
|
|
1833
|
+
<div
|
|
1834
|
+
role="combobox"
|
|
1835
|
+
aria-roledescription="Contains item list for selection"
|
|
1836
|
+
aria-haspopup="listbox"
|
|
1837
|
+
aria-expanded="true"
|
|
1838
|
+
aria-controls="formList"
|
|
1839
|
+
aria-activedescendant="formListItem2"
|
|
1840
|
+
aria-labelledby="twoColSelectLabel"
|
|
1841
|
+
class="fd-select__control"
|
|
1842
|
+
value="Notebook Basic 2"
|
|
1843
|
+
tabindex="0"
|
|
1844
|
+
id="twoColSelectCombobox"
|
|
1845
|
+
onclick="
|
|
1846
|
+
toggleElAttrs('twoColSelectPopoverBody', ['aria-hidden']);
|
|
1847
|
+
toggleElAttrs('twoColSelectCombobox', ['aria-expanded']);
|
|
1848
|
+
">
|
|
1849
|
+
<span class="fd-select__text-content">Notebook Basic 2</span>
|
|
1850
|
+
|
|
1851
|
+
<span
|
|
1852
|
+
role="button"
|
|
1853
|
+
tabindex="-1"
|
|
1854
|
+
aria-label="Selection options"
|
|
1855
|
+
title="Selection options"
|
|
1856
|
+
class="fd-button fd-button--transparent fd-select__button">
|
|
1857
|
+
<i class="sap-icon--slim-arrow-down" role="presentation" aria-hidden="true"></i>
|
|
1858
|
+
</span>
|
|
1859
|
+
</div>
|
|
1860
|
+
</div>
|
|
1861
|
+
<div
|
|
1862
|
+
aria-hidden="false"
|
|
1863
|
+
class="fd-popover__body fd-popover__body--no-arrow fd-popover__body--dropdown"
|
|
1864
|
+
id="twoColSelectPopoverBody">
|
|
1865
|
+
<ul
|
|
1866
|
+
id="twoColList"
|
|
1867
|
+
role="listbox"
|
|
1868
|
+
aria-roledescription="Contains all available items"
|
|
1869
|
+
aria-labelledby="twoColSelectLabel"
|
|
1870
|
+
class="fd-list fd-list--dropdown"
|
|
1871
|
+
>
|
|
1872
|
+
<li
|
|
1873
|
+
id="twoColListItem1"
|
|
1874
|
+
role="option"
|
|
1875
|
+
tabindex="0"
|
|
1876
|
+
aria-selected="false"
|
|
1877
|
+
aria-setsize="5"
|
|
1878
|
+
aria-posinset="1"
|
|
1879
|
+
class="fd-list__item">
|
|
1880
|
+
<span class="fd-list__title">Notebook Basic 1</span>
|
|
1881
|
+
<span class="fd-list__secondary">1000 EUR</span>
|
|
1882
|
+
</li>
|
|
1883
|
+
<li
|
|
1884
|
+
id="twoColListItem2"
|
|
1885
|
+
role="option"
|
|
1886
|
+
tabindex="0"
|
|
1887
|
+
aria-selected="true"
|
|
1888
|
+
aria-setsize="5"
|
|
1889
|
+
aria-posinset="2"
|
|
1890
|
+
class="fd-list__item">
|
|
1891
|
+
<span class="fd-list__title">Notebook Basic 2</span>
|
|
1892
|
+
<span class="fd-list__secondary">1400 EUR</span>
|
|
1893
|
+
</li>
|
|
1894
|
+
<li
|
|
1895
|
+
id="twoColListItem3"
|
|
1896
|
+
role="option"
|
|
1897
|
+
tabindex="0"
|
|
1898
|
+
aria-selected="false"
|
|
1899
|
+
aria-setsize="5"
|
|
1900
|
+
aria-posinset="3"
|
|
1901
|
+
class="fd-list__item">
|
|
1902
|
+
<span class="fd-list__title">Notebook Basic 3</span>
|
|
1903
|
+
<span class="fd-list__secondary">700 EUR</span>
|
|
1904
|
+
</li>
|
|
1905
|
+
<li
|
|
1906
|
+
id="twoColListItem4"
|
|
1907
|
+
role="option"
|
|
1908
|
+
tabindex="0"
|
|
1909
|
+
aria-selected="false"
|
|
1910
|
+
aria-setsize="5"
|
|
1911
|
+
aria-posinset="4"
|
|
1912
|
+
class="fd-list__item">
|
|
1913
|
+
<span class="fd-list__title">Notebook Basic 4</span>
|
|
1914
|
+
<span class="fd-list__secondary">12000 EUR</span>
|
|
1915
|
+
</li>
|
|
1916
|
+
<li
|
|
1917
|
+
id="twoColListItem5"
|
|
1918
|
+
role="option"
|
|
1919
|
+
tabindex="0"
|
|
1920
|
+
aria-selected="false"
|
|
1921
|
+
aria-setsize="5"
|
|
1922
|
+
aria-posinset="5"
|
|
1923
|
+
class="fd-list__item">
|
|
1924
|
+
<span class="fd-list__title">Notebook Basic 5</span>
|
|
1925
|
+
<span class="fd-list__secondary">40 EUR</span>
|
|
1926
|
+
</li>
|
|
1927
|
+
</ul>
|
|
1928
|
+
</div>
|
|
1929
|
+
```
|
|
1930
|
+
|
|
1931
|
+
### 2-column with icons
|
|
1932
|
+
|
|
1933
|
+
Not only can select be displayed with two columns, but also with icons. To display icons, add the \
|
|
1934
|
+
|
|
1935
|
+
```html
|
|
1936
|
+
<label class="fd-form-label" id="twoColSelectLabel">Choose an option</label>
|
|
1937
|
+
<div class="fd-popover">
|
|
1938
|
+
<div class="fd-popover__control" aria-expanded="true" aria-haspopup="true">
|
|
1939
|
+
<div class="fd-select">
|
|
1940
|
+
<div
|
|
1941
|
+
role="combobox"
|
|
1942
|
+
aria-roledescription="Contains item list for selection"
|
|
1943
|
+
aria-haspopup="listbox"
|
|
1944
|
+
aria-expanded="true"
|
|
1945
|
+
aria-controls="formList"
|
|
1946
|
+
aria-activedescendant="formListItem2"
|
|
1947
|
+
aria-labelledby="twoColSelectLabel"
|
|
1948
|
+
class="fd-select__control"
|
|
1949
|
+
value="Notebook Basic 2"
|
|
1950
|
+
tabindex="0"
|
|
1951
|
+
id="twoColSelectCombobox"
|
|
1952
|
+
onclick="
|
|
1953
|
+
toggleElAttrs('twoColSelectPopoverBody', ['aria-hidden']);
|
|
1954
|
+
toggleElAttrs('twoColSelectCombobox', ['aria-expanded']);
|
|
1955
|
+
">
|
|
1956
|
+
<span class="fd-select__text-content">Notebook Basic 2</span>
|
|
1957
|
+
|
|
1958
|
+
<span
|
|
1959
|
+
role="button"
|
|
1960
|
+
tabindex="-1"
|
|
1961
|
+
aria-label="Selection options"
|
|
1962
|
+
title="Selection options"
|
|
1963
|
+
class="fd-button fd-button--transparent fd-select__button">
|
|
1964
|
+
<i class="sap-icon--slim-arrow-down" role="presentation" aria-hidden="true"></i>
|
|
1965
|
+
</span>
|
|
1966
|
+
</div>
|
|
1967
|
+
</div>
|
|
1968
|
+
<div
|
|
1969
|
+
aria-hidden="false"
|
|
1970
|
+
class="fd-popover__body fd-popover__body--no-arrow fd-popover__body--dropdown"
|
|
1971
|
+
id="twoColSelectPopoverBody">
|
|
1972
|
+
<ul
|
|
1973
|
+
id="twoColList"
|
|
1974
|
+
role="listbox"
|
|
1975
|
+
aria-roledescription="Contains all available items"
|
|
1976
|
+
aria-labelledby="twoColSelectLabel"
|
|
1977
|
+
class="fd-list fd-list--dropdown"
|
|
1978
|
+
>
|
|
1979
|
+
<li
|
|
1980
|
+
id="twoColListItem1"
|
|
1981
|
+
role="option"
|
|
1982
|
+
tabindex="0"
|
|
1983
|
+
aria-selected="false"
|
|
1984
|
+
aria-setsize="5"
|
|
1985
|
+
aria-posinset="1"
|
|
1986
|
+
class="fd-list__item">
|
|
1987
|
+
<i role="presentation" aria-hidden="true" class="fd-list__icon sap-icon--laptop"></i>
|
|
1988
|
+
<span class="fd-list__title">Notebook Basic 1</span>
|
|
1989
|
+
<span class="fd-list__secondary">1000 EUR</span>
|
|
1990
|
+
</li>
|
|
1991
|
+
<li
|
|
1992
|
+
id="twoColListItem2"
|
|
1993
|
+
role="option"
|
|
1994
|
+
tabindex="0"
|
|
1995
|
+
aria-selected="true"
|
|
1996
|
+
aria-setsize="5"
|
|
1997
|
+
aria-posinset="2"
|
|
1998
|
+
class="fd-list__item">
|
|
1999
|
+
<i role="presentation" aria-hidden="true" class="fd-list__icon sap-icon--save"></i>
|
|
2000
|
+
<span class="fd-list__title">Notebook Basic 2</span>
|
|
2001
|
+
<span class="fd-list__secondary">1400 EUR</span>
|
|
2002
|
+
</li>
|
|
2003
|
+
<li
|
|
2004
|
+
id="twoColListItem3"
|
|
2005
|
+
role="option"
|
|
2006
|
+
tabindex="0"
|
|
2007
|
+
aria-selected="false"
|
|
2008
|
+
aria-setsize="5"
|
|
2009
|
+
aria-posinset="3"
|
|
2010
|
+
class="fd-list__item">
|
|
2011
|
+
<i role="presentation" aria-hidden="true" class="fd-list__icon sap-icon--desktop-mobile"></i>
|
|
2012
|
+
<span class="fd-list__title">Notebook Basic 3</span>
|
|
2013
|
+
<span class="fd-list__secondary">700 EUR</span>
|
|
2014
|
+
</li>
|
|
2015
|
+
<li
|
|
2016
|
+
id="twoColListItem4"
|
|
2017
|
+
role="option"
|
|
2018
|
+
tabindex="0"
|
|
2019
|
+
aria-selected="false"
|
|
2020
|
+
aria-setsize="5"
|
|
2021
|
+
aria-posinset="4"
|
|
2022
|
+
class="fd-list__item">
|
|
2023
|
+
<i role="presentation" aria-hidden="true" class="fd-list__icon sap-icon--touch"></i>
|
|
2024
|
+
<span class="fd-list__title">Notebook Basic 4</span>
|
|
2025
|
+
<span class="fd-list__secondary">12000 EUR</span>
|
|
2026
|
+
</li>
|
|
2027
|
+
<li
|
|
2028
|
+
id="twoColListItem5"
|
|
2029
|
+
role="option"
|
|
2030
|
+
tabindex="0"
|
|
2031
|
+
aria-selected="false"
|
|
2032
|
+
aria-setsize="5"
|
|
2033
|
+
aria-posinset="5"
|
|
2034
|
+
class="fd-list__item">
|
|
2035
|
+
<i role="presentation" aria-hidden="true" class="fd-list__icon sap-icon--sap-box"></i>
|
|
2036
|
+
<span class="fd-list__title">Notebook Basic 5</span>
|
|
2037
|
+
<span class="fd-list__secondary">40 EUR</span>
|
|
2038
|
+
</li>
|
|
2039
|
+
</ul>
|
|
2040
|
+
</div>
|
|
2041
|
+
```
|
|
2042
|
+
|
|
2043
|
+
### Grouping
|
|
2044
|
+
|
|
2045
|
+
Select can be displayed with headers that group the list items in the dropdown menu. To display group headers, add the \
|
|
2046
|
+
|
|
2047
|
+
```html
|
|
2048
|
+
<label class="fd-form-label" id="groupingLabel">Choose an option</label><div class="fd-popover">
|
|
2049
|
+
<div class="fd-popover__control" aria-expanded="true" aria-haspopup="true">
|
|
2050
|
+
<div class="fd-select">
|
|
2051
|
+
<div
|
|
2052
|
+
role="combobox"
|
|
2053
|
+
aria-roledescription="Contains item list for selection"
|
|
2054
|
+
aria-haspopup="listbox"
|
|
2055
|
+
aria-expanded="true"
|
|
2056
|
+
aria-controls="formList"
|
|
2057
|
+
aria-activedescendant=""
|
|
2058
|
+
aria-labelledby="groupingLabel"
|
|
2059
|
+
class="fd-select__control"
|
|
2060
|
+
value="Orange"
|
|
2061
|
+
tabindex="0"
|
|
2062
|
+
id="groupSelectCombobox"
|
|
2063
|
+
onclick="
|
|
2064
|
+
toggleElAttrs('groupPopoverBody', ['aria-hidden']);
|
|
2065
|
+
toggleElAttrs('groupSelectCombobox', ['aria-expanded']);
|
|
2066
|
+
">
|
|
2067
|
+
<span class="fd-select__text-content">Orange</span>
|
|
2068
|
+
|
|
2069
|
+
<span
|
|
2070
|
+
role="button"
|
|
2071
|
+
tabindex="-1"
|
|
2072
|
+
aria-label="Selection options"
|
|
2073
|
+
title="Selection options"
|
|
2074
|
+
class="fd-button fd-button--transparent fd-select__button">
|
|
2075
|
+
<i class="sap-icon--slim-arrow-down" role="presentation" aria-hidden="true"></i>
|
|
2076
|
+
</span>
|
|
2077
|
+
</div>
|
|
2078
|
+
</div>
|
|
2079
|
+
<div
|
|
2080
|
+
id="groupPopoverBody"
|
|
2081
|
+
class="fd-popover__body fd-popover__body--no-arrow fd-popover__body--dropdown"
|
|
2082
|
+
aria-hidden="false">
|
|
2083
|
+
<div role="listbox" tabindex="0" aria-labelledby="groupingLabel" aria-activedescendant="group1ListItem2">
|
|
2084
|
+
<ul id="group1List" role="group" aria-labelledby="fruitsHeader" class="fd-list fd-list--dropdown">
|
|
2085
|
+
<li role="presentation" class="fd-list__group-header" id="fruitsHeader">
|
|
2086
|
+
<span class="fd-list__title">Fruits</span>
|
|
2087
|
+
</li>
|
|
2088
|
+
<li id="group1ListItem1" role="option" tabindex="0" aria-selected="false" aria-setsize="10" aria-posinset="1" class="fd-list__item">
|
|
2089
|
+
<span class="fd-list__title">Apple</span>
|
|
2090
|
+
</li>
|
|
2091
|
+
<li id="group1ListItem2" role="option" tabindex="0" aria-selected="true" aria-setsize="10" aria-posinset="2" class="fd-list__item is-focus">
|
|
2092
|
+
<span class="fd-list__title">Orange</span>
|
|
2093
|
+
</li>
|
|
2094
|
+
<li id="group1ListItem3" role="option" tabindex="0" aria-selected="false" aria-setsize="10" aria-posinset="3" class="fd-list__item">
|
|
2095
|
+
<span class="fd-list__title">Banana</span>
|
|
2096
|
+
</li>
|
|
2097
|
+
<li id="group1ListItem4" role="option" tabindex="0" aria-selected="false" aria-setsize="10" aria-posinset="4" class="fd-list__item">
|
|
2098
|
+
<span class="fd-list__title">Kiwi</span>
|
|
2099
|
+
</li>
|
|
2100
|
+
<li id="group1ListItem5" role="option" tabindex="0" aria-selected="false" aria-setsize="10" aria-posinset="5" class="fd-list__item">
|
|
2101
|
+
<span class="fd-list__title">Strawberry</span>
|
|
2102
|
+
</li>
|
|
2103
|
+
</ul>
|
|
2104
|
+
|
|
2105
|
+
<ul id="group2List" role="group" aria-labelledby="vegHeader" class="fd-list fd-list--dropdown">
|
|
2106
|
+
<li role="presentation" class="fd-list__group-header" id="vegHeader">
|
|
2107
|
+
<span class="fd-list__title">Vegetables</span>
|
|
2108
|
+
</li>
|
|
2109
|
+
<li id="group2ListItem1" role="option" tabindex="0" aria-selected="false" aria-setsize="10" aria-posinset="6" class="fd-list__item">
|
|
2110
|
+
<span class="fd-list__title">Pepper</span>
|
|
2111
|
+
</li>
|
|
2112
|
+
<li id="group2ListItem2" role="option" tabindex="0" aria-selected="false" aria-setsize="10" aria-posinset="7" class="fd-list__item">
|
|
2113
|
+
<span class="fd-list__title">Eggplant</span>
|
|
2114
|
+
</li>
|
|
2115
|
+
<li id="group2ListItem3" role="option" tabindex="0" aria-selected="false" aria-setsize="10" aria-posinset="8" class="fd-list__item">
|
|
2116
|
+
<span class="fd-list__title">Broccoli</span>
|
|
2117
|
+
</li>
|
|
2118
|
+
<li id="group2ListItem4" role="option" tabindex="0" aria-selected="false" aria-setsize="10" aria-posinset="9" class="fd-list__item">
|
|
2119
|
+
<span class="fd-list__title">Carrot</span>
|
|
2120
|
+
</li>
|
|
2121
|
+
<li id="group2ListItem5" role="option" tabindex="0" aria-selected="false" aria-setsize="10" aria-posinset="10" class="fd-list__item">
|
|
2122
|
+
<span class="fd-list__title">Potato</span>
|
|
2123
|
+
</li>
|
|
2124
|
+
</ul>
|
|
2125
|
+
</div>
|
|
2126
|
+
</div>
|
|
2127
|
+
```
|
|
2128
|
+
|
|
2129
|
+
### Text wrapping
|
|
2130
|
+
|
|
2131
|
+
The select component wraps text by default, and there is virtually no limit to the text length. However, it is recommended to keep the length to a minimum for readability. The second column will always remain center-aligned, despite the length of the list item.
|
|
2132
|
+
|
|
2133
|
+
```html
|
|
2134
|
+
<label class="fd-form-label" id="wrapSelectLabel">Choose an option</label>
|
|
2135
|
+
<div class="fd-popover">
|
|
2136
|
+
<div class="fd-popover__control" aria-expanded="true" aria-haspopup="true">
|
|
2137
|
+
<div class="fd-select">
|
|
2138
|
+
<div
|
|
2139
|
+
role="combobox"
|
|
2140
|
+
aria-roledescription="Contains item list for selection"
|
|
2141
|
+
aria-haspopup="listbox"
|
|
2142
|
+
aria-expanded="true"
|
|
2143
|
+
aria-controls="formList"
|
|
2144
|
+
aria-activedescendant="formListItem2"
|
|
2145
|
+
aria-labelledby="wrapSelectLabel"
|
|
2146
|
+
class="fd-select__control"
|
|
2147
|
+
value="Notebook Basic 2"
|
|
2148
|
+
tabindex="0"
|
|
2149
|
+
id="wrapSelectCombobox"
|
|
2150
|
+
onclick="
|
|
2151
|
+
toggleElAttrs('wrapSelectPopoverBody', ['aria-hidden']);
|
|
2152
|
+
toggleElAttrs('wrapSelectCombobox', ['aria-expanded']);
|
|
2153
|
+
">
|
|
2154
|
+
<span class="fd-select__text-content">Notebook Basic 2</span>
|
|
2155
|
+
|
|
2156
|
+
<span
|
|
2157
|
+
role="button"
|
|
2158
|
+
tabindex="-1"
|
|
2159
|
+
aria-label="Selection options"
|
|
2160
|
+
title="Selection options"
|
|
2161
|
+
class="fd-button fd-button--transparent fd-select__button">
|
|
2162
|
+
<i class="sap-icon--slim-arrow-down" role="presentation" aria-hidden="true"></i>
|
|
2163
|
+
</span>
|
|
2164
|
+
</div>
|
|
2165
|
+
</div>
|
|
2166
|
+
<div
|
|
2167
|
+
aria-hidden="false"
|
|
2168
|
+
class="fd-popover__body fd-popover__body--no-arrow fd-popover__body--dropdown"
|
|
2169
|
+
id="wrapSelectPopoverBody">
|
|
2170
|
+
<ul
|
|
2171
|
+
id="wrapList"
|
|
2172
|
+
role="listbox"
|
|
2173
|
+
aria-roledescription="Contains all available items"
|
|
2174
|
+
aria-labelledby="wrapSelectLabel"
|
|
2175
|
+
class="fd-list fd-list--dropdown"
|
|
2176
|
+
>
|
|
2177
|
+
<li
|
|
2178
|
+
id="wrapListItem1"
|
|
2179
|
+
role="option"
|
|
2180
|
+
tabindex="0"
|
|
2181
|
+
aria-selected="false"
|
|
2182
|
+
aria-setsize="5"
|
|
2183
|
+
aria-posinset="1"
|
|
2184
|
+
class="fd-list__item">
|
|
2185
|
+
<span class="fd-list__title">Notebook Basic 1 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.</span>
|
|
2186
|
+
<span class="fd-list__secondary">1000 EUR</span>
|
|
2187
|
+
</li>
|
|
2188
|
+
<li
|
|
2189
|
+
id="wrapListItem2"
|
|
2190
|
+
role="option"
|
|
2191
|
+
tabindex="0"
|
|
2192
|
+
aria-selected="true"
|
|
2193
|
+
aria-setsize="5"
|
|
2194
|
+
aria-posinset="2"
|
|
2195
|
+
class="fd-list__item">
|
|
2196
|
+
<span class="fd-list__title">Notebook Basic 2</span>
|
|
2197
|
+
<span class="fd-list__secondary">1400 EUR</span>
|
|
2198
|
+
</li>
|
|
2199
|
+
<li
|
|
2200
|
+
id="wrapListItem3"
|
|
2201
|
+
role="option"
|
|
2202
|
+
tabindex="0"
|
|
2203
|
+
aria-selected="false"
|
|
2204
|
+
aria-setsize="5"
|
|
2205
|
+
aria-posinset="3"
|
|
2206
|
+
class="fd-list__item">
|
|
2207
|
+
<span class="fd-list__title">Notebook Basic 3</span>
|
|
2208
|
+
<span class="fd-list__secondary">700 EUR</span>
|
|
2209
|
+
</li>
|
|
2210
|
+
<li
|
|
2211
|
+
id="wrapListItem4"
|
|
2212
|
+
role="option"
|
|
2213
|
+
tabindex="0"
|
|
2214
|
+
aria-selected="false"
|
|
2215
|
+
aria-setsize="5"
|
|
2216
|
+
aria-posinset="4"
|
|
2217
|
+
class="fd-list__item">
|
|
2218
|
+
<span class="fd-list__title">Notebook Basic 4</span>
|
|
2219
|
+
<span class="fd-list__secondary">12000 EUR</span>
|
|
2220
|
+
</li>
|
|
2221
|
+
<li
|
|
2222
|
+
id="wrapListItem5"
|
|
2223
|
+
role="option"
|
|
2224
|
+
tabindex="0"
|
|
2225
|
+
aria-selected="false"
|
|
2226
|
+
aria-setsize="5"
|
|
2227
|
+
aria-posinset="5"
|
|
2228
|
+
class="fd-list__item">
|
|
2229
|
+
<span class="fd-list__title">Notebook Basic 5</span>
|
|
2230
|
+
<span class="fd-list__secondary">40 EUR</span>
|
|
2231
|
+
</li>
|
|
2232
|
+
</ul>
|
|
2233
|
+
</div>
|
|
2234
|
+
```
|
|
2235
|
+
|
|
2236
|
+
### No wrapping
|
|
2237
|
+
|
|
2238
|
+
Although select wraps text by default, it is possible to prevent wrapping. To achieve this, add the \
|
|
2239
|
+
|
|
2240
|
+
```html
|
|
2241
|
+
<label class="fd-form-label" id="noWrapSelectLabel">Choose an option</label>
|
|
2242
|
+
<div class="fd-popover">
|
|
2243
|
+
<div class="fd-popover__control" aria-expanded="true" aria-haspopup="true">
|
|
2244
|
+
<div class="fd-select">
|
|
2245
|
+
<div
|
|
2246
|
+
role="combobox"
|
|
2247
|
+
aria-roledescription="Contains item list for selection"
|
|
2248
|
+
aria-haspopup="listbox"
|
|
2249
|
+
aria-expanded="true"
|
|
2250
|
+
aria-controls="formList"
|
|
2251
|
+
aria-activedescendant="formListItem2"
|
|
2252
|
+
aria-labelledby="noWrapSelectLabel"
|
|
2253
|
+
class="fd-select__control"
|
|
2254
|
+
value="Notebook Basic 2"
|
|
2255
|
+
tabindex="0"
|
|
2256
|
+
id="noWrapSelectCombobox"
|
|
2257
|
+
onclick="
|
|
2258
|
+
toggleElAttrs('noWrapSelectPopoverBody', ['aria-hidden']);
|
|
2259
|
+
toggleElAttrs('noWrapSelectCombobox', ['aria-expanded']);
|
|
2260
|
+
">
|
|
2261
|
+
<span class="fd-select__text-content">Notebook Basic 2</span>
|
|
2262
|
+
|
|
2263
|
+
<span
|
|
2264
|
+
role="button"
|
|
2265
|
+
tabindex="-1"
|
|
2266
|
+
aria-label="Selection options"
|
|
2267
|
+
title="Selection options"
|
|
2268
|
+
class="fd-button fd-button--transparent fd-select__button">
|
|
2269
|
+
<i class="sap-icon--slim-arrow-down" role="presentation" aria-hidden="true"></i>
|
|
2270
|
+
</span>
|
|
2271
|
+
</div>
|
|
2272
|
+
</div>
|
|
2273
|
+
<div
|
|
2274
|
+
aria-hidden="false"
|
|
2275
|
+
class="fd-popover__body fd-popover__body--no-arrow fd-popover__body--dropdown"
|
|
2276
|
+
id="noWrapSelectPopoverBody">
|
|
2277
|
+
<ul
|
|
2278
|
+
id="noWrapList"
|
|
2279
|
+
role="listbox"
|
|
2280
|
+
aria-roledescription="Contains all available items"
|
|
2281
|
+
aria-labelledby="noWrapSelectLabel"
|
|
2282
|
+
class="fd-list fd-list--dropdown"
|
|
2283
|
+
>
|
|
2284
|
+
<li
|
|
2285
|
+
id="noWrapListItem1"
|
|
2286
|
+
role="option"
|
|
2287
|
+
tabindex="0"
|
|
2288
|
+
aria-selected="false"
|
|
2289
|
+
aria-setsize="5"
|
|
2290
|
+
aria-posinset="1"
|
|
2291
|
+
class="fd-list__item">
|
|
2292
|
+
<span class="fd-list__title fd-list__title--no-wrap">Notebook Basic 1 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.</span>
|
|
2293
|
+
<span class="fd-list__secondary">1000 EUR</span>
|
|
2294
|
+
</li>
|
|
2295
|
+
<li
|
|
2296
|
+
id="noWrapListItem2"
|
|
2297
|
+
role="option"
|
|
2298
|
+
tabindex="0"
|
|
2299
|
+
aria-selected="true"
|
|
2300
|
+
aria-setsize="5"
|
|
2301
|
+
aria-posinset="2"
|
|
2302
|
+
class="fd-list__item">
|
|
2303
|
+
<span class="fd-list__title">Notebook Basic 2</span>
|
|
2304
|
+
<span class="fd-list__secondary">1400 EUR</span>
|
|
2305
|
+
</li>
|
|
2306
|
+
<li
|
|
2307
|
+
id="noWrapListItem3"
|
|
2308
|
+
role="option"
|
|
2309
|
+
tabindex="0"
|
|
2310
|
+
aria-selected="false"
|
|
2311
|
+
aria-setsize="5"
|
|
2312
|
+
aria-posinset="3"
|
|
2313
|
+
class="fd-list__item">
|
|
2314
|
+
<span class="fd-list__title">Notebook Basic 3</span>
|
|
2315
|
+
<span class="fd-list__secondary">700 EUR</span>
|
|
2316
|
+
</li>
|
|
2317
|
+
<li
|
|
2318
|
+
id="noWrapListItem4"
|
|
2319
|
+
role="option"
|
|
2320
|
+
tabindex="0"
|
|
2321
|
+
aria-selected="false"
|
|
2322
|
+
aria-setsize="5"
|
|
2323
|
+
aria-posinset="4"
|
|
2324
|
+
class="fd-list__item">
|
|
2325
|
+
<span class="fd-list__title">Notebook Basic 4</span>
|
|
2326
|
+
<span class="fd-list__secondary">12000 EUR</span>
|
|
2327
|
+
</li>
|
|
2328
|
+
<li
|
|
2329
|
+
id="noWrapListItem5"
|
|
2330
|
+
role="option"
|
|
2331
|
+
tabindex="0"
|
|
2332
|
+
aria-selected="false"
|
|
2333
|
+
aria-setsize="5"
|
|
2334
|
+
aria-posinset="5"
|
|
2335
|
+
class="fd-list__item">
|
|
2336
|
+
<span class="fd-list__title">Notebook Basic 5</span>
|
|
2337
|
+
<span class="fd-list__secondary">40 EUR</span>
|
|
2338
|
+
</li>
|
|
2339
|
+
</ul>
|
|
2340
|
+
</div>
|
|
2341
|
+
```
|
|
2342
|
+
|
|
2343
|
+
### Popover style
|
|
2344
|
+
|
|
2345
|
+
Select can be displayed as a popover, using all of its specifications. The default size for the popover body is often longer than the text length. The body can be adjusted to match the text length by adding the \
|
|
2346
|
+
|
|
2347
|
+
```html
|
|
2348
|
+
<label class="fd-form-label" id="popSelectLabel">Choose an option</label>
|
|
2349
|
+
<div class="fd-popover">
|
|
2350
|
+
<div class="fd-popover__control" aria-expanded="true" aria-haspopup="true">
|
|
2351
|
+
<div class="fd-select">
|
|
2352
|
+
<div
|
|
2353
|
+
role="combobox"
|
|
2354
|
+
aria-roledescription="Contains item list for selection"
|
|
2355
|
+
aria-haspopup="listbox"
|
|
2356
|
+
aria-expanded="true"
|
|
2357
|
+
aria-controls="formList"
|
|
2358
|
+
aria-activedescendant="formListItem2"
|
|
2359
|
+
aria-labelledby="popSelectLabel"
|
|
2360
|
+
class="fd-select__control"
|
|
2361
|
+
value="Notebook Basic Model A2"
|
|
2362
|
+
tabindex="0"
|
|
2363
|
+
id="popSelectCombobox"
|
|
2364
|
+
onclick="
|
|
2365
|
+
toggleElAttrs('popSelectPopoverBody', ['aria-hidden']);
|
|
2366
|
+
toggleElAttrs('popSelectCombobox', ['aria-expanded']);
|
|
2367
|
+
">
|
|
2368
|
+
<span class="fd-select__text-content">Notebook Basic Model A2</span>
|
|
2369
|
+
|
|
2370
|
+
<span
|
|
2371
|
+
role="button"
|
|
2372
|
+
tabindex="-1"
|
|
2373
|
+
aria-label="Selection options"
|
|
2374
|
+
title="Selection options"
|
|
2375
|
+
class="fd-button fd-button--transparent fd-select__button">
|
|
2376
|
+
<i class="sap-icon--slim-arrow-down" role="presentation" aria-hidden="true"></i>
|
|
2377
|
+
</span>
|
|
2378
|
+
</div>
|
|
2379
|
+
</div>
|
|
2380
|
+
<div
|
|
2381
|
+
aria-hidden="false"
|
|
2382
|
+
class="fd-popover__body fd-popover__body--no-arrow fd-popover__body--dropdown fd-popover__body--dropdown-fill"
|
|
2383
|
+
id="popSelectPopoverBody">
|
|
2384
|
+
<ul
|
|
2385
|
+
id="popList"
|
|
2386
|
+
role="listbox"
|
|
2387
|
+
aria-roledescription="Contains all available items"
|
|
2388
|
+
aria-labelledby="popSelectLabel"
|
|
2389
|
+
class="fd-list fd-list--dropdown"
|
|
2390
|
+
>
|
|
2391
|
+
<li
|
|
2392
|
+
id="popListItem1"
|
|
2393
|
+
role="option"
|
|
2394
|
+
tabindex="0"
|
|
2395
|
+
aria-selected="false"
|
|
2396
|
+
aria-setsize="5"
|
|
2397
|
+
aria-posinset="1"
|
|
2398
|
+
class="fd-list__item">
|
|
2399
|
+
<span class="fd-list__title">Notebook Basic Model A1</span>
|
|
2400
|
+
</li>
|
|
2401
|
+
<li
|
|
2402
|
+
id="popListItem2"
|
|
2403
|
+
role="option"
|
|
2404
|
+
tabindex="0"
|
|
2405
|
+
aria-selected="true"
|
|
2406
|
+
aria-setsize="5"
|
|
2407
|
+
aria-posinset="2"
|
|
2408
|
+
class="fd-list__item">
|
|
2409
|
+
<span class="fd-list__title">Notebook Basic Model A2</span>
|
|
2410
|
+
</li>
|
|
2411
|
+
<li
|
|
2412
|
+
id="popListItem3"
|
|
2413
|
+
role="option"
|
|
2414
|
+
tabindex="0"
|
|
2415
|
+
aria-selected="false"
|
|
2416
|
+
aria-setsize="5"
|
|
2417
|
+
aria-posinset="3"
|
|
2418
|
+
class="fd-list__item">
|
|
2419
|
+
<span class="fd-list__title">Notebook Basic Model A3</span>
|
|
2420
|
+
</li>
|
|
2421
|
+
<li
|
|
2422
|
+
id="popListItem4"
|
|
2423
|
+
role="option"
|
|
2424
|
+
tabindex="0"
|
|
2425
|
+
aria-selected="false"
|
|
2426
|
+
aria-setsize="5"
|
|
2427
|
+
aria-posinset="4"
|
|
2428
|
+
class="fd-list__item">
|
|
2429
|
+
<span class="fd-list__title">Notebook Basic Model A4</span>
|
|
2430
|
+
</li>
|
|
2431
|
+
<li
|
|
2432
|
+
id="popListItem5"
|
|
2433
|
+
role="option"
|
|
2434
|
+
tabindex="0"
|
|
2435
|
+
aria-selected="false"
|
|
2436
|
+
aria-setsize="5"
|
|
2437
|
+
aria-posinset="5"
|
|
2438
|
+
class="fd-list__item">
|
|
2439
|
+
<span class="fd-list__title">Notebook Basic Model A5</span>
|
|
2440
|
+
</li>
|
|
2441
|
+
</ul>
|
|
2442
|
+
</div>
|
|
2443
|
+
```
|
|
2444
|
+
|
|
2445
|
+
### Large Select
|
|
2446
|
+
|
|
2447
|
+
There is a way to make larger select select body, To achieve it, add \
|
|
2448
|
+
|
|
2449
|
+
```html
|
|
2450
|
+
<label class="fd-form-label" id="largeSelectLabel">Choose an option</label>
|
|
2451
|
+
<div class="fd-popover">
|
|
2452
|
+
<div class="fd-popover__control" aria-expanded="true" aria-haspopup="true">
|
|
2453
|
+
<div class="fd-select">
|
|
2454
|
+
<div
|
|
2455
|
+
role="combobox"
|
|
2456
|
+
aria-roledescription="Contains item list for selection"
|
|
2457
|
+
aria-haspopup="listbox"
|
|
2458
|
+
aria-expanded="true"
|
|
2459
|
+
aria-controls="formList"
|
|
2460
|
+
aria-activedescendant="formListItem2"
|
|
2461
|
+
aria-labelledby="largeSelectLabel"
|
|
2462
|
+
class="fd-select__control"
|
|
2463
|
+
value="Notebook Basic Model A2"
|
|
2464
|
+
tabindex="0"
|
|
2465
|
+
id="largeSelectCombobox"
|
|
2466
|
+
onclick="
|
|
2467
|
+
toggleElAttrs('largeSelectPopoverBody', ['aria-hidden']);
|
|
2468
|
+
toggleElAttrs('largeSelectCombobox', ['aria-expanded']);
|
|
2469
|
+
">
|
|
2470
|
+
<span class="fd-select__text-content">Notebook Basic Model A2</span>
|
|
2471
|
+
|
|
2472
|
+
<span
|
|
2473
|
+
role="button"
|
|
2474
|
+
tabindex="-1"
|
|
2475
|
+
aria-label="Selection options"
|
|
2476
|
+
title="Selection options"
|
|
2477
|
+
class="fd-button fd-button--transparent fd-select__button">
|
|
2478
|
+
<i class="sap-icon--slim-arrow-down" role="presentation" aria-hidden="true"></i>
|
|
2479
|
+
</span>
|
|
2480
|
+
</div>
|
|
2481
|
+
</div>
|
|
2482
|
+
<div
|
|
2483
|
+
aria-hidden="false"
|
|
2484
|
+
class="fd-popover__body fd-popover__body--no-arrow fd-popover__body--dropdown"
|
|
2485
|
+
id="largeSelectPopoverBody">
|
|
2486
|
+
<ul
|
|
2487
|
+
id="largeList"
|
|
2488
|
+
role="listbox"
|
|
2489
|
+
aria-roledescription="Contains all available items"
|
|
2490
|
+
aria-labelledby="largeSelectLabel"
|
|
2491
|
+
class="fd-list fd-list--dropdown fd-list--large-dropdown"
|
|
2492
|
+
>
|
|
2493
|
+
<li
|
|
2494
|
+
id="largeListItem1"
|
|
2495
|
+
role="option"
|
|
2496
|
+
tabindex="0"
|
|
2497
|
+
aria-selected="false"
|
|
2498
|
+
aria-setsize="5"
|
|
2499
|
+
aria-posinset="1"
|
|
2500
|
+
class="fd-list__item">
|
|
2501
|
+
<span class="fd-list__title">Notebook Basic Model A1 Lorem ipsum dolor sit amet consectetur adipisicing elit. Fuga, commodi minima excepturi dolores quidem quisquam, tenetur dicta illo cupiditate, pariatur autem ipsam perferendis reiciendis ut perspiciatis consectetur est ullam accusantium? Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quas veritatis repellendus doloremque odio, minus ut ducimus? Odio dolor reprehenderit architecto, praesentium at nam sit consectetur sint ut eum ab inventore.</span>
|
|
2502
|
+
</li>
|
|
2503
|
+
<li
|
|
2504
|
+
id="largeListItem2"
|
|
2505
|
+
role="option"
|
|
2506
|
+
tabindex="0"
|
|
2507
|
+
aria-selected="true"
|
|
2508
|
+
aria-setsize="5"
|
|
2509
|
+
aria-posinset="2"
|
|
2510
|
+
class="fd-list__item">
|
|
2511
|
+
<span class="fd-list__title">Notebook Basic Model A2</span>
|
|
2512
|
+
</li>
|
|
2513
|
+
<li
|
|
2514
|
+
id="largeListItem3"
|
|
2515
|
+
role="option"
|
|
2516
|
+
tabindex="0"
|
|
2517
|
+
aria-selected="false"
|
|
2518
|
+
aria-setsize="5"
|
|
2519
|
+
aria-posinset="3"
|
|
2520
|
+
class="fd-list__item">
|
|
2521
|
+
<span class="fd-list__title">Notebook Basic Model A3</span>
|
|
2522
|
+
</li>
|
|
2523
|
+
<li
|
|
2524
|
+
id="largeListItem4"
|
|
2525
|
+
role="option"
|
|
2526
|
+
tabindex="0"
|
|
2527
|
+
aria-selected="false"
|
|
2528
|
+
aria-setsize="5"
|
|
2529
|
+
aria-posinset="4"
|
|
2530
|
+
class="fd-list__item">
|
|
2531
|
+
<span class="fd-list__title">Notebook Basic Model A4</span>
|
|
2532
|
+
</li>
|
|
2533
|
+
<li
|
|
2534
|
+
id="largeListItem5"
|
|
2535
|
+
role="option"
|
|
2536
|
+
tabindex="0"
|
|
2537
|
+
aria-selected="false"
|
|
2538
|
+
aria-setsize="5"
|
|
2539
|
+
aria-posinset="5"
|
|
2540
|
+
class="fd-list__item">
|
|
2541
|
+
<span class="fd-list__title">Notebook Basic Model A5</span>
|
|
2542
|
+
</li>
|
|
2543
|
+
</ul>
|
|
2544
|
+
</div>
|
|
2545
|
+
```
|
|
2546
|
+
|
|
2547
|
+
### Disabled
|
|
2548
|
+
|
|
2549
|
+
Select can be disabled to communicate to the user that the control cannot be selected. To disable select, add the \
|
|
2550
|
+
|
|
2551
|
+
```html
|
|
2552
|
+
<label class="fd-form-label" id="disabledSelectLabel">Choose an option</label>
|
|
2553
|
+
<div class="fd-popover">
|
|
2554
|
+
<div class="fd-popover__control" aria-expanded="true" aria-haspopup="true">
|
|
2555
|
+
<div class="fd-select">
|
|
2556
|
+
<div
|
|
2557
|
+
role="combobox"
|
|
2558
|
+
aria-roledescription="Contains item list for selection"
|
|
2559
|
+
aria-haspopup="listbox"
|
|
2560
|
+
aria-expanded="true"
|
|
2561
|
+
aria-controls="formList"
|
|
2562
|
+
aria-disabled="true"
|
|
2563
|
+
aria-activedescendant="formListItem2"
|
|
2564
|
+
aria-labelledby="disabledSelectLabel"
|
|
2565
|
+
class="fd-select__control is-disabled"
|
|
2566
|
+
value="Notebook Basic 2"
|
|
2567
|
+
tabindex="0"
|
|
2568
|
+
id="disabledSelectCombobox"
|
|
2569
|
+
onclick="
|
|
2570
|
+
toggleElAttrs('disabledSelectPopoverBody', ['aria-hidden']);
|
|
2571
|
+
toggleElAttrs('disabledSelectCombobox', ['aria-expanded']);
|
|
2572
|
+
">
|
|
2573
|
+
<span class="fd-select__text-content">Notebook Basic 2</span>
|
|
2574
|
+
|
|
2575
|
+
<span
|
|
2576
|
+
role="button"
|
|
2577
|
+
tabindex="-1"
|
|
2578
|
+
aria-label="Selection options"
|
|
2579
|
+
title="Selection options"
|
|
2580
|
+
class="fd-button fd-button--transparent fd-select__button">
|
|
2581
|
+
<i class="sap-icon--slim-arrow-down" role="presentation" aria-hidden="true"></i>
|
|
2582
|
+
</span>
|
|
2583
|
+
</div>
|
|
2584
|
+
</div>
|
|
2585
|
+
<div
|
|
2586
|
+
aria-hidden="true"
|
|
2587
|
+
class="fd-popover__body fd-popover__body--no-arrow fd-popover__body--dropdown"
|
|
2588
|
+
id="disabledSelectPopoverBody">
|
|
2589
|
+
<ul
|
|
2590
|
+
id="disabledList"
|
|
2591
|
+
role="listbox"
|
|
2592
|
+
aria-roledescription="Contains all available items"
|
|
2593
|
+
aria-labelledby="disabledSelectLabel"
|
|
2594
|
+
class="fd-list fd-list--dropdown"
|
|
2595
|
+
>
|
|
2596
|
+
<li
|
|
2597
|
+
id="disabledListItem1"
|
|
2598
|
+
role="option"
|
|
2599
|
+
tabindex="0"
|
|
2600
|
+
aria-selected="false"
|
|
2601
|
+
aria-setsize="5"
|
|
2602
|
+
aria-posinset="1"
|
|
2603
|
+
class="fd-list__item">
|
|
2604
|
+
<span class="fd-list__title">Notebook Basic 1</span>
|
|
2605
|
+
<span class="fd-list__secondary">1000 EUR</span>
|
|
2606
|
+
</li>
|
|
2607
|
+
<li
|
|
2608
|
+
id="disabledListItem2"
|
|
2609
|
+
role="option"
|
|
2610
|
+
tabindex="0"
|
|
2611
|
+
aria-selected="true"
|
|
2612
|
+
aria-setsize="5"
|
|
2613
|
+
aria-posinset="2"
|
|
2614
|
+
class="fd-list__item">
|
|
2615
|
+
<span class="fd-list__title">Notebook Basic 2</span>
|
|
2616
|
+
<span class="fd-list__secondary">1400 EUR</span>
|
|
2617
|
+
</li>
|
|
2618
|
+
<li
|
|
2619
|
+
id="disabledListItem3"
|
|
2620
|
+
role="option"
|
|
2621
|
+
tabindex="0"
|
|
2622
|
+
aria-selected="false"
|
|
2623
|
+
aria-setsize="5"
|
|
2624
|
+
aria-posinset="3"
|
|
2625
|
+
class="fd-list__item">
|
|
2626
|
+
<span class="fd-list__title">Notebook Basic 3</span>
|
|
2627
|
+
<span class="fd-list__secondary">700 EUR</span>
|
|
2628
|
+
</li>
|
|
2629
|
+
<li
|
|
2630
|
+
id="disabledListItem4"
|
|
2631
|
+
role="option"
|
|
2632
|
+
tabindex="0"
|
|
2633
|
+
aria-selected="false"
|
|
2634
|
+
aria-setsize="5"
|
|
2635
|
+
aria-posinset="4"
|
|
2636
|
+
class="fd-list__item">
|
|
2637
|
+
<span class="fd-list__title">Notebook Basic 4</span>
|
|
2638
|
+
<span class="fd-list__secondary">12000 EUR</span>
|
|
2639
|
+
</li>
|
|
2640
|
+
<li
|
|
2641
|
+
id="disabledListItem5"
|
|
2642
|
+
role="option"
|
|
2643
|
+
tabindex="0"
|
|
2644
|
+
aria-selected="false"
|
|
2645
|
+
aria-setsize="5"
|
|
2646
|
+
aria-posinset="5"
|
|
2647
|
+
class="fd-list__item">
|
|
2648
|
+
<span class="fd-list__title">Notebook Basic 5</span>
|
|
2649
|
+
<span class="fd-list__secondary">40 EUR</span>
|
|
2650
|
+
</li>
|
|
2651
|
+
</ul>
|
|
2652
|
+
</div>
|
|
2653
|
+
```
|
|
2654
|
+
|
|
2655
|
+
### Read-only
|
|
2656
|
+
|
|
2657
|
+
Select can be displayed as read-only, meaning the value in the input field cannot be changed via typing. To display select as read-only, add the \
|
|
2658
|
+
|
|
2659
|
+
```html
|
|
2660
|
+
<label class="fd-form-label" id="readonlySelectLabel">Choose an option</label>
|
|
2661
|
+
<div class="fd-popover">
|
|
2662
|
+
<div class="fd-popover__control" aria-expanded="true" aria-haspopup="true">
|
|
2663
|
+
<div class="fd-select">
|
|
2664
|
+
<div
|
|
2665
|
+
role="combobox"
|
|
2666
|
+
aria-roledescription="Contains item list for selection"
|
|
2667
|
+
aria-haspopup="listbox"
|
|
2668
|
+
aria-expanded="true"
|
|
2669
|
+
aria-controls="formList"
|
|
2670
|
+
aria-readonly="true"
|
|
2671
|
+
aria-activedescendant="formListItem2"
|
|
2672
|
+
aria-labelledby="readonlySelectLabel"
|
|
2673
|
+
class="fd-select__control is-readonly"
|
|
2674
|
+
value="Notebook Basic 2"
|
|
2675
|
+
tabindex="0"
|
|
2676
|
+
id="readonlySelectCombobox">
|
|
2677
|
+
<span class="fd-select__text-content">Notebook Basic 2</span>
|
|
2678
|
+
|
|
2679
|
+
<span
|
|
2680
|
+
role="button"
|
|
2681
|
+
tabindex="-1"
|
|
2682
|
+
aria-label="Selection options"
|
|
2683
|
+
title="Selection options"
|
|
2684
|
+
class="fd-button fd-button--transparent fd-select__button">
|
|
2685
|
+
<i class="sap-icon--slim-arrow-down" role="presentation" aria-hidden="true"></i>
|
|
2686
|
+
</span>
|
|
2687
|
+
</div>
|
|
2688
|
+
</div>
|
|
2689
|
+
<div
|
|
2690
|
+
aria-hidden="true"
|
|
2691
|
+
class="fd-popover__body fd-popover__body--no-arrow fd-popover__body--dropdown"
|
|
2692
|
+
id="readonlySelectPopoverBody">
|
|
2693
|
+
<ul
|
|
2694
|
+
id="readonlyList"
|
|
2695
|
+
role="listbox"
|
|
2696
|
+
aria-roledescription="Contains all available items"
|
|
2697
|
+
aria-labelledby="readonlySelectLabel"
|
|
2698
|
+
class="fd-list fd-list--dropdown"
|
|
2699
|
+
>
|
|
2700
|
+
<li
|
|
2701
|
+
id="readonlyListItem1"
|
|
2702
|
+
role="option"
|
|
2703
|
+
tabindex="0"
|
|
2704
|
+
aria-selected="false"
|
|
2705
|
+
aria-setsize="5"
|
|
2706
|
+
aria-posinset="1"
|
|
2707
|
+
class="fd-list__item">
|
|
2708
|
+
<span class="fd-list__title">Notebook Basic 1</span>
|
|
2709
|
+
<span class="fd-list__secondary">1000 EUR</span>
|
|
2710
|
+
</li>
|
|
2711
|
+
<li
|
|
2712
|
+
id="readonlyListItem2"
|
|
2713
|
+
role="option"
|
|
2714
|
+
tabindex="0"
|
|
2715
|
+
aria-selected="true"
|
|
2716
|
+
aria-setsize="5"
|
|
2717
|
+
aria-posinset="2"
|
|
2718
|
+
class="fd-list__item">
|
|
2719
|
+
<span class="fd-list__title">Notebook Basic 2</span>
|
|
2720
|
+
<span class="fd-list__secondary">1400 EUR</span>
|
|
2721
|
+
</li>
|
|
2722
|
+
<li
|
|
2723
|
+
id="readonlyListItem3"
|
|
2724
|
+
role="option"
|
|
2725
|
+
tabindex="0"
|
|
2726
|
+
aria-selected="false"
|
|
2727
|
+
aria-setsize="5"
|
|
2728
|
+
aria-posinset="3"
|
|
2729
|
+
class="fd-list__item">
|
|
2730
|
+
<span class="fd-list__title">Notebook Basic 3</span>
|
|
2731
|
+
<span class="fd-list__secondary">700 EUR</span>
|
|
2732
|
+
</li>
|
|
2733
|
+
<li
|
|
2734
|
+
id="readonlyListItem4"
|
|
2735
|
+
role="option"
|
|
2736
|
+
tabindex="0"
|
|
2737
|
+
aria-selected="false"
|
|
2738
|
+
aria-setsize="5"
|
|
2739
|
+
aria-posinset="4"
|
|
2740
|
+
class="fd-list__item">
|
|
2741
|
+
<span class="fd-list__title">Notebook Basic 4</span>
|
|
2742
|
+
<span class="fd-list__secondary">12000 EUR</span>
|
|
2743
|
+
</li>
|
|
2744
|
+
<li
|
|
2745
|
+
id="readonlyListItem5"
|
|
2746
|
+
role="option"
|
|
2747
|
+
tabindex="0"
|
|
2748
|
+
aria-selected="false"
|
|
2749
|
+
aria-setsize="5"
|
|
2750
|
+
aria-posinset="5"
|
|
2751
|
+
class="fd-list__item">
|
|
2752
|
+
<span class="fd-list__title">Notebook Basic 5</span>
|
|
2753
|
+
<span class="fd-list__secondary">40 EUR</span>
|
|
2754
|
+
</li>
|
|
2755
|
+
</ul>
|
|
2756
|
+
</div>
|
|
2757
|
+
```
|
|
2758
|
+
|
|
2759
|
+
### Blank
|
|
2760
|
+
|
|
2761
|
+
The select component can display a blank list item instead of a pre-selected list item, prompting the user to select the dropdown button to see more. To display a blank list item, simply enter a few spaces in the title of the list item.
|
|
2762
|
+
|
|
2763
|
+
```html
|
|
2764
|
+
<label class="fd-form-label" id="blankSelectLabel">Choose an option</label>
|
|
2765
|
+
<div class="fd-popover">
|
|
2766
|
+
<div class="fd-popover__control" aria-expanded="true" aria-haspopup="true">
|
|
2767
|
+
<div class="fd-select">
|
|
2768
|
+
<div
|
|
2769
|
+
role="combobox"
|
|
2770
|
+
aria-roledescription="Contains item list for selection"
|
|
2771
|
+
aria-haspopup="listbox"
|
|
2772
|
+
aria-expanded="true"
|
|
2773
|
+
aria-controls="formList"
|
|
2774
|
+
aria-labelledby="blankSelectLabel"
|
|
2775
|
+
class="fd-select__control"
|
|
2776
|
+
value=""
|
|
2777
|
+
tabindex="0"
|
|
2778
|
+
id="blankSelectCombobox"
|
|
2779
|
+
onclick="
|
|
2780
|
+
toggleElAttrs('blankSelectPopoverBody', ['aria-hidden']);
|
|
2781
|
+
toggleElAttrs('blankSelectCombobox', ['aria-expanded']);
|
|
2782
|
+
">
|
|
2783
|
+
<span class="fd-select__text-content"></span>
|
|
2784
|
+
|
|
2785
|
+
<span
|
|
2786
|
+
role="button"
|
|
2787
|
+
tabindex="-1"
|
|
2788
|
+
aria-label="Selection options"
|
|
2789
|
+
title="Selection options"
|
|
2790
|
+
class="fd-button fd-button--transparent fd-select__button">
|
|
2791
|
+
<i class="sap-icon--slim-arrow-down" role="presentation" aria-hidden="true"></i>
|
|
2792
|
+
</span>
|
|
2793
|
+
</div>
|
|
2794
|
+
</div>
|
|
2795
|
+
<div
|
|
2796
|
+
aria-hidden="false"
|
|
2797
|
+
class="fd-popover__body fd-popover__body--no-arrow fd-popover__body--dropdown"
|
|
2798
|
+
id="blankSelectPopoverBody">
|
|
2799
|
+
<ul
|
|
2800
|
+
id="blankList"
|
|
2801
|
+
role="listbox"
|
|
2802
|
+
aria-roledescription="Contains all available items"
|
|
2803
|
+
aria-labelledby="blankSelectLabel"
|
|
2804
|
+
class="fd-list fd-list--dropdown"
|
|
2805
|
+
>
|
|
2806
|
+
<li
|
|
2807
|
+
id="blankListItem1"
|
|
2808
|
+
role="option"
|
|
2809
|
+
tabindex="0"
|
|
2810
|
+
aria-selected="false"
|
|
2811
|
+
aria-setsize="5"
|
|
2812
|
+
aria-posinset="1"
|
|
2813
|
+
class="fd-list__item">
|
|
2814
|
+
<span class="fd-list__title"></span>
|
|
2815
|
+
<span class="fd-list__secondary"></span>
|
|
2816
|
+
</li>
|
|
2817
|
+
<li
|
|
2818
|
+
id="blankListItem2"
|
|
2819
|
+
role="option"
|
|
2820
|
+
tabindex="0"
|
|
2821
|
+
aria-selected="false"
|
|
2822
|
+
aria-setsize="5"
|
|
2823
|
+
aria-posinset="2"
|
|
2824
|
+
class="fd-list__item">
|
|
2825
|
+
<span class="fd-list__title">Notebook Basic 2</span>
|
|
2826
|
+
<span class="fd-list__secondary">1400 EUR</span>
|
|
2827
|
+
</li>
|
|
2828
|
+
<li
|
|
2829
|
+
id="blankListItem3"
|
|
2830
|
+
role="option"
|
|
2831
|
+
tabindex="0"
|
|
2832
|
+
aria-selected="false"
|
|
2833
|
+
aria-setsize="5"
|
|
2834
|
+
aria-posinset="3"
|
|
2835
|
+
class="fd-list__item">
|
|
2836
|
+
<span class="fd-list__title">Notebook Basic 3</span>
|
|
2837
|
+
<span class="fd-list__secondary">700 EUR</span>
|
|
2838
|
+
</li>
|
|
2839
|
+
<li
|
|
2840
|
+
id="blankListItem4"
|
|
2841
|
+
role="option"
|
|
2842
|
+
tabindex="0"
|
|
2843
|
+
aria-selected="false"
|
|
2844
|
+
aria-setsize="5"
|
|
2845
|
+
aria-posinset="4"
|
|
2846
|
+
class="fd-list__item">
|
|
2847
|
+
<span class="fd-list__title">Notebook Basic 4</span>
|
|
2848
|
+
<span class="fd-list__secondary">12000 EUR</span>
|
|
2849
|
+
</li>
|
|
2850
|
+
<li
|
|
2851
|
+
id="blankListItem5"
|
|
2852
|
+
role="option"
|
|
2853
|
+
tabindex="0"
|
|
2854
|
+
aria-selected="false"
|
|
2855
|
+
aria-setsize="5"
|
|
2856
|
+
aria-posinset="5"
|
|
2857
|
+
class="fd-list__item">
|
|
2858
|
+
<span class="fd-list__title">Notebook Basic 5</span>
|
|
2859
|
+
<span class="fd-list__secondary">40 EUR</span>
|
|
2860
|
+
</li>
|
|
2861
|
+
</ul>
|
|
2862
|
+
</div>
|
|
2863
|
+
```
|
|
2864
|
+
|
|
2865
|
+
## Accessibility
|
|
2866
|
+
|
|
2867
|
+
- Use semantic HTML elements where appropriate
|
|
2868
|
+
- Include proper ARIA attributes for interactive elements
|
|
2869
|
+
- Ensure keyboard navigation support
|
|
2870
|
+
- Provide adequate color contrast
|
|
2871
|
+
|
|
2872
|
+
## Source
|
|
2873
|
+
|
|
2874
|
+
This documentation was automatically generated from: `packages/styles/stories/Components/select/select.stories.js`
|
|
2875
|
+
|
|
2876
|
+
For the latest updates and interactive examples, see [Storybook](https://sap.github.io/fundamental-styles/).
|