@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,580 @@
|
|
|
1
|
+
---
|
|
2
|
+
component: fd-feed-list
|
|
3
|
+
title: Components/Feed List and Item
|
|
4
|
+
category: Components
|
|
5
|
+
selector: fd-feed-list
|
|
6
|
+
cssFile: feed-list.css
|
|
7
|
+
sourcePath: packages/styles/stories/Components/feed-list/feed-list.stories.js
|
|
8
|
+
tags: []
|
|
9
|
+
dependencies: ["action-sheet","avatar","button","feed-list","icon","link","menu","popover"]
|
|
10
|
+
relatedComponents: ["action-sheet","avatar","button","feed-list","icon","link","menu","popover"]
|
|
11
|
+
stability: stable
|
|
12
|
+
generatedAt: 2026-06-09T18:29:01.475Z
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
# Components/Feed List and Item
|
|
16
|
+
|
|
17
|
+
The feed list displays feed list items that individually consist of a username, a written entry and an optional image. There is also a separate byline below that can contain a time stamp or an attribute in the form of free text.
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
##Usage
|
|
21
|
+
**Use the feed list if:**
|
|
22
|
+
|
|
23
|
+
- You expect multiple instances, such as notes or feed entries.
|
|
24
|
+
- The items in the feed list are homogenous.
|
|
25
|
+
- A user needs to input small amounts of text without formatting.
|
|
26
|
+
|
|
27
|
+
**Do not use feed list if:**
|
|
28
|
+
|
|
29
|
+
- The user needs to format the text (rich text editor).
|
|
30
|
+
- You need only a single text box instance. Instead, use **Text Area**.
|
|
31
|
+
- You want to display empty fields for the user to input feed entries. Instead, use **Feed Input**.
|
|
32
|
+
|
|
33
|
+
## Usage Guidelines
|
|
34
|
+
|
|
35
|
+
**Use the feed list if:**
|
|
36
|
+
|
|
37
|
+
- You expect multiple instances, such as notes or feed entries.
|
|
38
|
+
- The items in the feed list are homogenous.
|
|
39
|
+
- A user needs to input small amounts of text without formatting.
|
|
40
|
+
|
|
41
|
+
## When Not To Use
|
|
42
|
+
|
|
43
|
+
- The user needs to format the text (rich text editor).
|
|
44
|
+
- You need only a single text box instance. Instead, use **Text Area**.
|
|
45
|
+
- You want to display empty fields for the user to input feed entries. Instead, use **Feed Input**.
|
|
46
|
+
|
|
47
|
+
## Dependencies
|
|
48
|
+
|
|
49
|
+
This component depends on the following CSS files:
|
|
50
|
+
|
|
51
|
+
- `action-sheet.css`
|
|
52
|
+
- `avatar.css`
|
|
53
|
+
- `button.css`
|
|
54
|
+
- `feed-list.css`
|
|
55
|
+
- `icon.css`
|
|
56
|
+
- `link.css`
|
|
57
|
+
- `menu.css`
|
|
58
|
+
- `popover.css`
|
|
59
|
+
|
|
60
|
+
## Installation
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
npm install fundamental-styles
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
```html
|
|
67
|
+
<!-- Include theme -->
|
|
68
|
+
<link href="node_modules/fundamental-styles/dist/theming/sap_horizon.css" rel="stylesheet">
|
|
69
|
+
|
|
70
|
+
<!-- Include component CSS -->
|
|
71
|
+
<link href="node_modules/fundamental-styles/dist/feed-list.css" rel="stylesheet">
|
|
72
|
+
|
|
73
|
+
<!-- Include dependencies -->
|
|
74
|
+
<link href="node_modules/fundamental-styles/dist/action-sheet.css" rel="stylesheet">
|
|
75
|
+
<link href="node_modules/fundamental-styles/dist/avatar.css" rel="stylesheet">
|
|
76
|
+
<link href="node_modules/fundamental-styles/dist/button.css" rel="stylesheet">
|
|
77
|
+
<link href="node_modules/fundamental-styles/dist/feed-list.css" rel="stylesheet">
|
|
78
|
+
<link href="node_modules/fundamental-styles/dist/icon.css" rel="stylesheet">
|
|
79
|
+
<link href="node_modules/fundamental-styles/dist/link.css" rel="stylesheet">
|
|
80
|
+
<link href="node_modules/fundamental-styles/dist/menu.css" rel="stylesheet">
|
|
81
|
+
<link href="node_modules/fundamental-styles/dist/popover.css" rel="stylesheet">
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
## Basic Usage
|
|
85
|
+
|
|
86
|
+
```html
|
|
87
|
+
<ul class="fd-feed-list" aria-label="Feed List Item default example">
|
|
88
|
+
<li class="fd-feed-list__body">
|
|
89
|
+
<div
|
|
90
|
+
class="fd-avatar fd-avatar--circle fd-avatar--s fd-avatar--thumbnail fd-feed-list__thumb"
|
|
91
|
+
|
|
92
|
+
role="img"
|
|
93
|
+
aria-label="John Doe"
|
|
94
|
+
title="John Doe">
|
|
95
|
+
|
|
96
|
+
<div class="fd-feed-list__content">
|
|
97
|
+
<p class="fd-feed-list__text">
|
|
98
|
+
<span class="fd-feed-list__name">Joe Doe: </span>
|
|
99
|
+
Suspendisse facilisis sed odio in mollis. Donec quis justo aliquam, porta justo a, accumsan lorem.
|
|
100
|
+
</p>
|
|
101
|
+
<div class="fd-feed-list__footer">
|
|
102
|
+
<small class="fd-feed-list__footer--byline">Aug 20, 2020</small>
|
|
103
|
+
<small class="fd-feed-list__footer--byline">Reply</small>
|
|
104
|
+
</div>
|
|
105
|
+
</div>
|
|
106
|
+
</li>
|
|
107
|
+
</ul>
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
## Modifiers
|
|
111
|
+
|
|
112
|
+
| Class | Description |
|
|
113
|
+
|-------|-------------|
|
|
114
|
+
| `fd-feed-list--group` | Evidently, feed list items can be displayed in a group |
|
|
115
|
+
| `fd-feed-list--link` | The feed list item can display linked usernames (and images) |
|
|
116
|
+
| `fd-feed-list--no-border` | When feed list items are displayed in a group, they are usually separated by borders |
|
|
117
|
+
| `fd-feed-list--s` | The standard feed list item displays a user\ |
|
|
118
|
+
|
|
119
|
+
## BEM Elements
|
|
120
|
+
|
|
121
|
+
This component uses the following BEM elements:
|
|
122
|
+
|
|
123
|
+
- `fd-feed-list__actions`
|
|
124
|
+
- `fd-feed-list__body`
|
|
125
|
+
- `fd-feed-list__content`
|
|
126
|
+
- `fd-feed-list__footer`
|
|
127
|
+
- `fd-feed-list__footer--byline`
|
|
128
|
+
- `fd-feed-list__link--more`
|
|
129
|
+
- `fd-feed-list__name`
|
|
130
|
+
- `fd-feed-list__text`
|
|
131
|
+
- `fd-feed-list__thumb`
|
|
132
|
+
- `fd-feed-list__wrapper`
|
|
133
|
+
- `fd-feed-list__wrapper--header`
|
|
134
|
+
|
|
135
|
+
## Related Components
|
|
136
|
+
|
|
137
|
+
This component works with or depends on:
|
|
138
|
+
|
|
139
|
+
- `action-sheet`
|
|
140
|
+
- `avatar`
|
|
141
|
+
- `button`
|
|
142
|
+
- `feed-list`
|
|
143
|
+
- `icon`
|
|
144
|
+
- `link`
|
|
145
|
+
- `menu`
|
|
146
|
+
- `popover`
|
|
147
|
+
|
|
148
|
+
## Design Tokens
|
|
149
|
+
|
|
150
|
+
Key CSS variables used by this component:
|
|
151
|
+
|
|
152
|
+
- `--byline`
|
|
153
|
+
- `--fdFeed_List_Item_Background`
|
|
154
|
+
- `--fdFeed_List_Item_Border_Bottom`
|
|
155
|
+
- `--fdFeed_List_Item_Border_Top`
|
|
156
|
+
- `--group`
|
|
157
|
+
- `--header`
|
|
158
|
+
- `--link`
|
|
159
|
+
- `--more`
|
|
160
|
+
- `--no-border`
|
|
161
|
+
- `--s`
|
|
162
|
+
- `--sapContent_IconColor`
|
|
163
|
+
- `--sapContent_LabelColor`
|
|
164
|
+
- `--sapFontSmallSize`
|
|
165
|
+
|
|
166
|
+
## Examples
|
|
167
|
+
|
|
168
|
+
### Standard
|
|
169
|
+
|
|
170
|
+
The standard feed list item displays a user\
|
|
171
|
+
|
|
172
|
+
```html
|
|
173
|
+
<ul class="fd-feed-list" aria-label="Feed List Item default example">
|
|
174
|
+
<li class="fd-feed-list__body">
|
|
175
|
+
<div
|
|
176
|
+
class="fd-avatar fd-avatar--circle fd-avatar--s fd-avatar--thumbnail fd-feed-list__thumb"
|
|
177
|
+
|
|
178
|
+
role="img"
|
|
179
|
+
aria-label="John Doe"
|
|
180
|
+
title="John Doe">
|
|
181
|
+
|
|
182
|
+
<div class="fd-feed-list__content">
|
|
183
|
+
<p class="fd-feed-list__text">
|
|
184
|
+
<span class="fd-feed-list__name">Joe Doe: </span>
|
|
185
|
+
Suspendisse facilisis sed odio in mollis. Donec quis justo aliquam, porta justo a, accumsan lorem.
|
|
186
|
+
</p>
|
|
187
|
+
<div class="fd-feed-list__footer">
|
|
188
|
+
<small class="fd-feed-list__footer--byline">Aug 20, 2020</small>
|
|
189
|
+
<small class="fd-feed-list__footer--byline">Reply</small>
|
|
190
|
+
</div>
|
|
191
|
+
</div>
|
|
192
|
+
</li>
|
|
193
|
+
</ul>
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
### Placeholder image
|
|
197
|
+
|
|
198
|
+
The feed list item will display a placeholder image if the user does not have an image assigned.
|
|
199
|
+
|
|
200
|
+
```html
|
|
201
|
+
<ul class="fd-feed-list" aria-label="Feed List Item placeholder user image example">
|
|
202
|
+
<li class="fd-feed-list__body">
|
|
203
|
+
<div
|
|
204
|
+
class="fd-avatar fd-avatar--circle fd-avatar--s fd-avatar--placeholder fd-feed-list__thumb"
|
|
205
|
+
role="img"
|
|
206
|
+
aria-label="John Doe"
|
|
207
|
+
title="John Doe">
|
|
208
|
+
<i class="sap-icon--person-placeholder"></i>
|
|
209
|
+
|
|
210
|
+
<div class="fd-feed-list__content">
|
|
211
|
+
<p class="fd-feed-list__text">
|
|
212
|
+
<span class="fd-feed-list__name">Joe Doe: </span>
|
|
213
|
+
Suspendisse facilisis sed odio in mollis. Donec quis justo aliquam, porta justo a, accumsan lorem.
|
|
214
|
+
</p>
|
|
215
|
+
|
|
216
|
+
<div class="fd-feed-list__footer">
|
|
217
|
+
<small class="fd-feed-list__footer--byline">Aug 20, 2020</small>
|
|
218
|
+
<small class="fd-feed-list__footer--byline">Reply</small>
|
|
219
|
+
</div>
|
|
220
|
+
</div>
|
|
221
|
+
</li>
|
|
222
|
+
</ul>
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
### No image
|
|
226
|
+
|
|
227
|
+
The feed list item can be displayed without an image by removing the `fd-avatar` element from the container.
|
|
228
|
+
|
|
229
|
+
```html
|
|
230
|
+
<ul class="fd-feed-list" aria-label="Feed List Item without user image example">
|
|
231
|
+
<li class="fd-feed-list__body">
|
|
232
|
+
<div class="fd-feed-list__content">
|
|
233
|
+
<p class="fd-feed-list__text">
|
|
234
|
+
<span class="fd-feed-list__name">Joe Doe: </span>
|
|
235
|
+
Suspendisse facilisis sed odio in mollis. Donec quis justo aliquam, porta justo a, accumsan lorem.
|
|
236
|
+
</p>
|
|
237
|
+
|
|
238
|
+
<div class="fd-feed-list__footer">
|
|
239
|
+
<small class="fd-feed-list__footer--byline">Aug 20, 2020</small>
|
|
240
|
+
<small class="fd-feed-list__footer--byline">Reply</small>
|
|
241
|
+
</div>
|
|
242
|
+
</div>
|
|
243
|
+
</li>
|
|
244
|
+
</ul>
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
### Linked
|
|
248
|
+
|
|
249
|
+
The feed list item can display linked usernames (and images). To display a linked username, add the `fd-link` class with the `fd-link--emphasized` modifier to the `fd-feed-list__name` element.
|
|
250
|
+
|
|
251
|
+
```html
|
|
252
|
+
<ul class="fd-feed-list" aria-label="Feed List Item with user link example">
|
|
253
|
+
<li class="fd-feed-list__body">
|
|
254
|
+
|
|
255
|
+
<div class="fd-feed-list__content">
|
|
256
|
+
<p class="fd-feed-list__text">
|
|
257
|
+
<span class="fd-feed-list__name">
|
|
258
|
+
<a href="#" class="fd-link fd-link--emphasized"><span class="fd-link__content">Joe Doe: </span></a>
|
|
259
|
+
</span>
|
|
260
|
+
Suspendisse facilisis sed odio in mollis. Donec quis justo aliquam, porta justo a, accumsan lorem.
|
|
261
|
+
</p>
|
|
262
|
+
|
|
263
|
+
<div class="fd-feed-list__footer">
|
|
264
|
+
<small class="fd-feed-list__footer--byline">Aug 20, 2020</small>
|
|
265
|
+
<small class="fd-feed-list__footer--byline">Reply</small>
|
|
266
|
+
</div>
|
|
267
|
+
</li>
|
|
268
|
+
</ul>
|
|
269
|
+
```
|
|
270
|
+
|
|
271
|
+
### Show more
|
|
272
|
+
|
|
273
|
+
Feed list items can display a <i>MORE</i> link that can show more text (when/if it is truncated). Truncation occurs when the text reaches 300 characters. When hovering over the link, the text is highlighted and underlined.
|
|
274
|
+
|
|
275
|
+
```html
|
|
276
|
+
<ul class='fd-feed-list' aria-label='Feed List Item with show more text example'>
|
|
277
|
+
<li class='fd-feed-list__body'>
|
|
278
|
+
|
|
279
|
+
<div class='fd-feed-list__content'>
|
|
280
|
+
<p class='fd-feed-list__text'>
|
|
281
|
+
<span class='fd-feed-list__name'>Joe Doe: </span>
|
|
282
|
+
<span>Maecenas convallis velit quis felis dictum, in ultrices quam faucibus. Morbi tempor eu elit eu consequat. Sed at lorem a ex consequat pharetra. Etiam convallis odio at vulputate venenatis. In sit amet pharetra urna. Ut nulla nisi, porta at ligula a, elementum ullamcorper lectus. Suspendisse blandit, risus nec vestibulum volutpat, nulla neque rhoncus dolor, vitae rutrum lectus neque nec ligula. Maecenas pulvinar, ligula nec fringilla volutpat, urna quam rutrum tellus, vi...</span>
|
|
283
|
+
<a class='fd-link fd-feed-list__link--more' tabindex='0'><span class='fd-link__content'>More</span></a>
|
|
284
|
+
</p>
|
|
285
|
+
|
|
286
|
+
<div class='fd-feed-list__footer'>
|
|
287
|
+
<small class='fd-feed-list__footer--byline'>Aug 20, 2020</small>
|
|
288
|
+
<small class='fd-feed-list__footer--byline'>Reply</small>
|
|
289
|
+
</div>
|
|
290
|
+
</li>
|
|
291
|
+
</ul>
|
|
292
|
+
```
|
|
293
|
+
|
|
294
|
+
### Show less
|
|
295
|
+
|
|
296
|
+
Similarly, feed list items can display a <i>LESS</i> link that will revert the text back to when it was truncated.
|
|
297
|
+
|
|
298
|
+
```html
|
|
299
|
+
<ul class="fd-feed-list" aria-label="Feed List Item with show less text example">
|
|
300
|
+
<li class="fd-feed-list__body">
|
|
301
|
+
|
|
302
|
+
<div class="fd-feed-list__content">
|
|
303
|
+
<p class="fd-feed-list__text">
|
|
304
|
+
<span class="fd-feed-list__name">Joe Doe: </span>
|
|
305
|
+
<span>Maecenas convallis velit quis felis dictum, in ultrices quam faucibus. Morbi tempor eu elit eu consequat. Sed at lorem a ex consequat pharetra. Etiam convallis odio at vulputate venenatis. In sit amet pharetra urna. Ut nulla nisi, porta at ligula a, elementum ullamcorper lectus. Suspendisse blandit, risus nec vestibulum volutpat, nulla neque rhoncus dolor, vitae rutrum lectus neque nec ligula. Maecenas pulvinar, ligula nec fringilla volutpat, urna quam rutrum tellus, vitae elementum elit est malesuada nunc. Maecenas eu risus posuere, volutpat justo in, ultricies sem</span>
|
|
306
|
+
<a class="fd-link fd-feed-list__link--more" tabindex="0"><span class="fd-link__content">Less</span></a>
|
|
307
|
+
</p>
|
|
308
|
+
|
|
309
|
+
<div class="fd-feed-list__footer">
|
|
310
|
+
<small class="fd-feed-list__footer--byline">Aug 20, 2020</small>
|
|
311
|
+
<small class="fd-feed-list__footer--byline">Reply</small>
|
|
312
|
+
</div>
|
|
313
|
+
</li>
|
|
314
|
+
</ul>
|
|
315
|
+
```
|
|
316
|
+
|
|
317
|
+
### Actions
|
|
318
|
+
|
|
319
|
+
Feed list items can display actions that users can perform on their individual feed posts. These typically include actions like <i>Edit</i> and <i>Delete</i>, however, other actions can be displayed depending on the use case. It is recommended to display a maximum of 5 actions per post.
|
|
320
|
+
|
|
321
|
+
```html
|
|
322
|
+
<ul class="fd-feed-list" aria-label="Feed List Item with popover actions example">
|
|
323
|
+
<li class="fd-feed-list__body">
|
|
324
|
+
<div
|
|
325
|
+
class="fd-avatar fd-avatar--circle fd-avatar--s fd-avatar--thumbnail fd-feed-list__thumb"
|
|
326
|
+
|
|
327
|
+
role="img"
|
|
328
|
+
aria-label="John Doe"
|
|
329
|
+
title="John Doe">
|
|
330
|
+
|
|
331
|
+
<div class="fd-feed-list__content">
|
|
332
|
+
<div class="fd-feed-list__actions">
|
|
333
|
+
<div class="fd-popover">
|
|
334
|
+
<div class="fd-popover__control">
|
|
335
|
+
<button class="fd-button fd-button--transparent"
|
|
336
|
+
aria-label="More Options" aria-controls="actionSheetDesktop" aria-expanded="false"
|
|
337
|
+
aria-haspopup="true" onclick="onPopoverClick('actionSheetDesktop');">
|
|
338
|
+
<i class="sap-icon--overflow"></i>
|
|
339
|
+
</button>
|
|
340
|
+
</div>
|
|
341
|
+
<div class="fd-popover__body fd-popover__body--right" aria-hidden="true" id="actionSheetDesktop">
|
|
342
|
+
<ul class="fd-action-sheet" role="list" aria-label="List of contextual options">
|
|
343
|
+
<li class="fd-action-sheet__item" role="listitem">
|
|
344
|
+
<button class="fd-button fd-button--full-width fd-button--transparent fd-button--text-alignment-left">
|
|
345
|
+
<i class="sap-icon--attachment"></i>
|
|
346
|
+
<span class="fd-button__text">Button 1</span>
|
|
347
|
+
</button>
|
|
348
|
+
</li>
|
|
349
|
+
<li class="fd-action-sheet__item" role="listitem">
|
|
350
|
+
<button class="fd-button fd-button--full-width fd-button--transparent fd-button--text-alignment-left">
|
|
351
|
+
<i class="sap-icon--add"></i>
|
|
352
|
+
<span class="fd-button__text">Button 2</span>
|
|
353
|
+
</button>
|
|
354
|
+
</li>
|
|
355
|
+
<li class="fd-action-sheet__item" role="listitem">
|
|
356
|
+
<button class="fd-button fd-button--full-width fd-button--transparent fd-button--text-alignment-left">
|
|
357
|
+
<i class="sap-icon--print"></i>
|
|
358
|
+
<span class="fd-button__text">Button 3</span>
|
|
359
|
+
</button>
|
|
360
|
+
</li>
|
|
361
|
+
</ul>
|
|
362
|
+
</div>
|
|
363
|
+
</div>
|
|
364
|
+
</div>
|
|
365
|
+
<p class="fd-feed-list__text">
|
|
366
|
+
<span class="fd-feed-list__name">Joe Doe: </span>
|
|
367
|
+
<span>In hac habitasse platea dictumst. Fusce eu dui viverra, dictum justo in, pul aug. Praesent aliquam massa non lectus commodo, id vestibulum lectus auctor. Proin lorem quam, accumsan ac dui et, cursus ornare dui. Nunc ultricies dolor felis, in viverra mi venenatis in. Sed vel nisl a dui posuere ullamcorper. Donec posuere id massa at dictum. Suspendisse potenti.</span>
|
|
368
|
+
</p>
|
|
369
|
+
<div class="fd-feed-list__footer">
|
|
370
|
+
<small class="fd-feed-list__footer--byline">Aug 20, 2020</small>
|
|
371
|
+
<small class="fd-feed-list__footer--byline">Reply</small>
|
|
372
|
+
</div>
|
|
373
|
+
</div>
|
|
374
|
+
</li>
|
|
375
|
+
</ul>
|
|
376
|
+
```
|
|
377
|
+
|
|
378
|
+
### Group
|
|
379
|
+
|
|
380
|
+
Evidently, feed list items can be displayed in a group. The example below displays a feed list item with a placeholder image and two standard feed list items.
|
|
381
|
+
|
|
382
|
+
```html
|
|
383
|
+
<ul class="fd-feed-list fd-feed-list--group" aria-label="Feed List Item group example">
|
|
384
|
+
<li class="fd-feed-list__body">
|
|
385
|
+
<div
|
|
386
|
+
class="fd-avatar fd-avatar--circle fd-avatar--s fd-avatar--placeholder fd-feed-list__thumb"
|
|
387
|
+
role="img"
|
|
388
|
+
aria-label="John Doe"
|
|
389
|
+
title="John Doe">
|
|
390
|
+
<i class="sap-icon--person-placeholder"></i>
|
|
391
|
+
<div class="fd-feed-list__content">
|
|
392
|
+
<p class="fd-feed-list__text">
|
|
393
|
+
<span class="fd-feed-list__name">Cruz: </span>
|
|
394
|
+
<span>Maecenas convallis velit quis felis dictum, in ultrices quam faucibus. </span>
|
|
395
|
+
</p>
|
|
396
|
+
<div class="fd-feed-list__footer">
|
|
397
|
+
<small class="fd-feed-list__footer--byline">Aug 21, 2020</small>
|
|
398
|
+
<small class="fd-feed-list__footer--byline">Reply</small>
|
|
399
|
+
</div>
|
|
400
|
+
</div>
|
|
401
|
+
</li>
|
|
402
|
+
|
|
403
|
+
<li class="fd-feed-list__body">
|
|
404
|
+
<div
|
|
405
|
+
class="fd-avatar fd-avatar--circle fd-avatar--s fd-avatar--thumbnail fd-feed-list__thumb"
|
|
406
|
+
|
|
407
|
+
role="img"
|
|
408
|
+
aria-label="John Doe"
|
|
409
|
+
title="John Doe">
|
|
410
|
+
|
|
411
|
+
<div class="fd-feed-list__content">
|
|
412
|
+
<p class="fd-feed-list__text">
|
|
413
|
+
<span class="fd-feed-list__name">Joe Doe: </span>
|
|
414
|
+
<span>Maecenas convallis velit quis felis dictum, in ultrices quam faucibus. </span>
|
|
415
|
+
</p>
|
|
416
|
+
<div class="fd-feed-list__footer">
|
|
417
|
+
<small class="fd-feed-list__footer--byline">Aug 22, 2020</small>
|
|
418
|
+
<small class="fd-feed-list__footer--byline">Reply</small>
|
|
419
|
+
</div>
|
|
420
|
+
</div>
|
|
421
|
+
</li>
|
|
422
|
+
|
|
423
|
+
<li class="fd-feed-list__body">
|
|
424
|
+
|
|
425
|
+
<div class="fd-feed-list__content">
|
|
426
|
+
<p class="fd-feed-list__text">
|
|
427
|
+
<span class="fd-feed-list__name">Sanchez: </span>
|
|
428
|
+
<span>Maecenas convallis velit quis felis dictum, in ultrices quam faucibus.</span>
|
|
429
|
+
</p>
|
|
430
|
+
<div class="fd-feed-list__footer">
|
|
431
|
+
<small class="fd-feed-list__footer--byline">Aug 20, 2020</small>
|
|
432
|
+
<small class="fd-feed-list__footer--byline">Reply</small>
|
|
433
|
+
</div>
|
|
434
|
+
</li>
|
|
435
|
+
</ul>
|
|
436
|
+
```
|
|
437
|
+
|
|
438
|
+
### Borderless group
|
|
439
|
+
|
|
440
|
+
When feed list items are displayed in a group, they are usually separated by borders. However, to remove the borders, add the `fd-feed-list--no-border` modifier class to the main element.
|
|
441
|
+
|
|
442
|
+
```html
|
|
443
|
+
<ul class="fd-feed-list fd-feed-list--group fd-feed-list--no-border" aria-label="Feed List Item group example">
|
|
444
|
+
<li class="fd-feed-list__body">
|
|
445
|
+
<div
|
|
446
|
+
class="fd-avatar fd-avatar--circle fd-avatar--s fd-avatar--placeholder fd-feed-list__thumb"
|
|
447
|
+
role="img"
|
|
448
|
+
aria-label="John Doe"
|
|
449
|
+
title="John Doe">
|
|
450
|
+
<i class="sap-icon--person-placeholder"></i>
|
|
451
|
+
<div class="fd-feed-list__content">
|
|
452
|
+
<p class="fd-feed-list__text">
|
|
453
|
+
<span class="fd-feed-list__name">Cruz: </span>
|
|
454
|
+
<span>Maecenas convallis velit quis felis dictum, in ultrices quam faucibus.</span>
|
|
455
|
+
</p>
|
|
456
|
+
<div class="fd-feed-list__footer">
|
|
457
|
+
<small class="fd-feed-list__footer--byline">Aug 21, 2020</small>
|
|
458
|
+
<small class="fd-feed-list__footer--byline">Reply</small>
|
|
459
|
+
</div>
|
|
460
|
+
</div>
|
|
461
|
+
</li>
|
|
462
|
+
|
|
463
|
+
<li class="fd-feed-list__body">
|
|
464
|
+
<div
|
|
465
|
+
class="fd-avatar fd-avatar--circle fd-avatar--s fd-avatar--thumbnail fd-feed-list__thumb"
|
|
466
|
+
|
|
467
|
+
role="img"
|
|
468
|
+
aria-label="John Doe"
|
|
469
|
+
title="John Doe">
|
|
470
|
+
|
|
471
|
+
<div class="fd-feed-list__content">
|
|
472
|
+
<p class="fd-feed-list__text">
|
|
473
|
+
<span class="fd-feed-list__name">Joe Doe: </span>
|
|
474
|
+
<span>Maecenas convallis velit quis felis dictum, in ultrices quam faucibus.</span>
|
|
475
|
+
</p>
|
|
476
|
+
<div class="fd-feed-list__footer">
|
|
477
|
+
<small class="fd-feed-list__footer--byline">Aug 22, 2020</small>
|
|
478
|
+
<small class="fd-feed-list__footer--byline">Reply</small>
|
|
479
|
+
</div>
|
|
480
|
+
</div>
|
|
481
|
+
</li>
|
|
482
|
+
|
|
483
|
+
<li class="fd-feed-list__body">
|
|
484
|
+
|
|
485
|
+
<div class="fd-feed-list__content">
|
|
486
|
+
<p class="fd-feed-list__text">
|
|
487
|
+
<span class="fd-feed-list__name">Sanchez: </span>
|
|
488
|
+
<span>Maecenas convallis velit quis felis dictum, in ultrices quam faucibus.</span>
|
|
489
|
+
</p>
|
|
490
|
+
<div class="fd-feed-list__footer">
|
|
491
|
+
<small class="fd-feed-list__footer--byline">Aug 20, 2020</small>
|
|
492
|
+
<small class="fd-feed-list__footer--byline">Reply</small>
|
|
493
|
+
</div>
|
|
494
|
+
</li>
|
|
495
|
+
</ul>
|
|
496
|
+
```
|
|
497
|
+
|
|
498
|
+
### Mobile
|
|
499
|
+
|
|
500
|
+
The feed list item can be mobile responsive by adding the `fd-feed-list--s` modifier class to the main element.
|
|
501
|
+
|
|
502
|
+
```html
|
|
503
|
+
<ul class="fd-feed-list fd-feed-list--s" aria-label="Feed List Item small size example">
|
|
504
|
+
<li class="fd-feed-list__body">
|
|
505
|
+
<div class="fd-feed-list__wrapper">
|
|
506
|
+
<div class="fd-feed-list__wrapper fd-feed-list__wrapper--header">
|
|
507
|
+
<div
|
|
508
|
+
class="fd-avatar fd-avatar--circle fd-avatar--s fd-avatar--thumbnail fd-feed-list__thumb"
|
|
509
|
+
|
|
510
|
+
role="img"
|
|
511
|
+
aria-label="John Doe"
|
|
512
|
+
title="John Doe">
|
|
513
|
+
<div>
|
|
514
|
+
<span class="fd-feed-list__name">Joe Doe: </span>
|
|
515
|
+
<div class="fd-feed-list__footer">
|
|
516
|
+
<small class="fd-feed-list__footer--byline">Aug 20, 2020</small>
|
|
517
|
+
<small class="fd-feed-list__footer--byline">Reply</small>
|
|
518
|
+
</div>
|
|
519
|
+
</div>
|
|
520
|
+
|
|
521
|
+
</div>
|
|
522
|
+
<div class="fd-feed-list__actions">
|
|
523
|
+
<button class="fd-button fd-button--transparent"
|
|
524
|
+
aria-label="More Options" aria-controls="actionSheetPhone" aria-expanded="false"
|
|
525
|
+
aria-haspopup="true" onclick="toggleClass('actionSheetPhone', 'fd-action-sheet__wrapper--active');">
|
|
526
|
+
<i class="sap-icon--overflow"></i>
|
|
527
|
+
</button>
|
|
528
|
+
</div>
|
|
529
|
+
</div>
|
|
530
|
+
|
|
531
|
+
<div class="fd-feed-list__content">
|
|
532
|
+
<p class="fd-feed-list__text">
|
|
533
|
+
Suspendisse facilisis sed odio in mollis. Donec quis justo aliquam, porta justo a, accumsan lorem.
|
|
534
|
+
</p>
|
|
535
|
+
</div>
|
|
536
|
+
<div class="fd-action-sheet__wrapper" id="actionSheetPhone">
|
|
537
|
+
<h6 class="fd-action-sheet__title">Press cancel to hide action sheet</h6>
|
|
538
|
+
<ul class="fd-action-sheet fd-action-sheet--mobile" role="list" aria-label="List of contextual options">
|
|
539
|
+
<li class="fd-action-sheet__item" role="listitem">
|
|
540
|
+
<button class="fd-button fd-button--full-width fd-button--transparent fd-button--text-alignment-left">
|
|
541
|
+
<i class="sap-icon--attachment"></i>
|
|
542
|
+
<span class="fd-button__text">Button 1</span>
|
|
543
|
+
</button>
|
|
544
|
+
</li>
|
|
545
|
+
<li class="fd-action-sheet__item" role="listitem">
|
|
546
|
+
<button class="fd-button fd-button--full-width fd-button--transparent fd-button--text-alignment-left">
|
|
547
|
+
<i class="sap-icon--add"></i>
|
|
548
|
+
<span class="fd-button__text">Button 2</span>
|
|
549
|
+
</button>
|
|
550
|
+
</li>
|
|
551
|
+
<li class="fd-action-sheet__item" role="listitem">
|
|
552
|
+
<button class="fd-button fd-button--full-width fd-button--transparent fd-button--text-alignment-left">
|
|
553
|
+
<i class="sap-icon--print"></i>
|
|
554
|
+
<span class="fd-button__text">Button 3</span>
|
|
555
|
+
</button>
|
|
556
|
+
</li>
|
|
557
|
+
<li class="fd-action-sheet__item" role="listitem">
|
|
558
|
+
<button class="fd-button fd-button--full-width fd-button--negative"
|
|
559
|
+
onclick="toggleClass('actionSheetPhone', 'fd-action-sheet__wrapper--active');">
|
|
560
|
+
<span class="fd-button__text">Cancel</span>
|
|
561
|
+
</button>
|
|
562
|
+
</li>
|
|
563
|
+
</ul>
|
|
564
|
+
</div>
|
|
565
|
+
</li>
|
|
566
|
+
</ul>
|
|
567
|
+
```
|
|
568
|
+
|
|
569
|
+
## Accessibility
|
|
570
|
+
|
|
571
|
+
- Use semantic HTML elements where appropriate
|
|
572
|
+
- Include proper ARIA attributes for interactive elements
|
|
573
|
+
- Ensure keyboard navigation support
|
|
574
|
+
- Provide adequate color contrast
|
|
575
|
+
|
|
576
|
+
## Source
|
|
577
|
+
|
|
578
|
+
This documentation was automatically generated from: `packages/styles/stories/Components/feed-list/feed-list.stories.js`
|
|
579
|
+
|
|
580
|
+
For the latest updates and interactive examples, see [Storybook](https://sap.github.io/fundamental-styles/).
|