@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,133 @@
|
|
|
1
|
+
---
|
|
2
|
+
component: paddings
|
|
3
|
+
title: Layouts/Paddings
|
|
4
|
+
category: Layouts
|
|
5
|
+
selector:
|
|
6
|
+
cssFile:
|
|
7
|
+
sourcePath: packages/styles/stories/Layouts/paddings/paddings.stories.js
|
|
8
|
+
tags: []
|
|
9
|
+
dependencies: ["paddings"]
|
|
10
|
+
relatedComponents: ["paddings"]
|
|
11
|
+
stability: stable
|
|
12
|
+
generatedAt: 2026-06-09T18:29:01.681Z
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
# Layouts/Paddings
|
|
16
|
+
|
|
17
|
+
The CSS padding properties are used to generate space around an element's content, inside of any defined borders.
|
|
18
|
+
With CSS, you have full control over the padding. There are properties for setting the padding for each side of an element.
|
|
19
|
+
We now provide a number of predefined padding clases which add predefined padding values.
|
|
20
|
+
|
|
21
|
+
## Dependencies
|
|
22
|
+
|
|
23
|
+
This component depends on the following CSS files:
|
|
24
|
+
|
|
25
|
+
- `paddings.css`
|
|
26
|
+
|
|
27
|
+
## Basic Usage
|
|
28
|
+
|
|
29
|
+
```html
|
|
30
|
+
<div class="docs-column-flex docs-column-flex--align-start">
|
|
31
|
+
<div class="docs-layout-margins-paddings--color-14 fd-padding">
|
|
32
|
+
<div class="docs-layout-margins-paddings docs-layout-margins-paddings--width docs-layout-grid-bg--color-7">container</div>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Related Components
|
|
38
|
+
|
|
39
|
+
This component works with or depends on:
|
|
40
|
+
|
|
41
|
+
- `paddings`
|
|
42
|
+
|
|
43
|
+
## Design Tokens
|
|
44
|
+
|
|
45
|
+
Key CSS variables used by this component:
|
|
46
|
+
|
|
47
|
+
- `--lg`
|
|
48
|
+
- `--md`
|
|
49
|
+
- `--none`
|
|
50
|
+
- `--sm`
|
|
51
|
+
- `--tiny`
|
|
52
|
+
- `--xl`
|
|
53
|
+
|
|
54
|
+
## Examples
|
|
55
|
+
|
|
56
|
+
### All-Round Padding
|
|
57
|
+
|
|
58
|
+
All-round padding appears on all sides of the container they are applied to. Use \
|
|
59
|
+
|
|
60
|
+
```html
|
|
61
|
+
<div class="docs-column-flex docs-column-flex--align-start">
|
|
62
|
+
<div class="docs-layout-margins-paddings--color-14 fd-padding">
|
|
63
|
+
<div class="docs-layout-margins-paddings docs-layout-margins-paddings--width docs-layout-grid-bg--color-7">container</div>
|
|
64
|
+
</div>
|
|
65
|
+
</div>
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### Double-Sided Padding
|
|
69
|
+
|
|
70
|
+
Double sided paddings appear on two opposite sides of the element. Use \
|
|
71
|
+
|
|
72
|
+
```html
|
|
73
|
+
<div class="docs-column-flex docs-column-flex--align-start">
|
|
74
|
+
<div class="docs-layout-margins-paddings--color-14 fd-padding-begin-end--tiny">
|
|
75
|
+
<div class="docs-layout-margins-paddings docs-layout-margins-paddings--width docs-layout-grid-bg--color-7">container(tiny)</div>
|
|
76
|
+
</div>
|
|
77
|
+
<div class="docs-layout-margins-paddings--color-14 fd-padding-begin-end--sm">
|
|
78
|
+
<div class="docs-layout-margins-paddings docs-layout-margins-paddings--width-sm docs-layout-grid-bg--color-7">container(sm)</div>
|
|
79
|
+
</div>
|
|
80
|
+
<div class="docs-layout-margins-paddings--color-14 fd-padding-begin-end--md">
|
|
81
|
+
<div class="docs-layout-margins-paddings docs-layout-margins-paddings--width-md docs-layout-grid-bg--color-7">container(md)</div>
|
|
82
|
+
</div>
|
|
83
|
+
<div class="docs-layout-margins-paddings--color-14 fd-padding-begin-end--lg">
|
|
84
|
+
<div class="docs-layout-margins-paddings docs-layout-margins-paddings--width-lg docs-layout-grid-bg--color-7">container(lg)</div>
|
|
85
|
+
</div>
|
|
86
|
+
</div>
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
### NoPadding
|
|
90
|
+
|
|
91
|
+
No padding classes remove existing container paddings. Use \
|
|
92
|
+
|
|
93
|
+
```html
|
|
94
|
+
<div class="docs-column-flex docs-column-flex--align-start">
|
|
95
|
+
<div class="docs-layout-margins-paddings--color-14 docs-layout-margins-paddings--padded fd-padding--none">
|
|
96
|
+
<div class="docs-layout-margins-paddings docs-layout-margins-paddings--width docs-layout-grid-bg--color-7">container</div>
|
|
97
|
+
</div>
|
|
98
|
+
</div>
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
### ResponsivePadding
|
|
102
|
+
|
|
103
|
+
The responsive padding class adds a double sided padding inside a container based on its width. Use \
|
|
104
|
+
|
|
105
|
+
```html
|
|
106
|
+
<div class="docs-column-flex docs-column-flex--align-start">
|
|
107
|
+
<div class="docs-layout-margins-paddings--color-14 fd-padding-responsive--sm">
|
|
108
|
+
<div class="docs-layout-margins-paddings docs-layout-margins-paddings--width-sm docs-layout-grid-bg--color-7">container(sm)</div>
|
|
109
|
+
</div>
|
|
110
|
+
<div class="docs-layout-margins-paddings--color-14 fd-padding-responsive--md">
|
|
111
|
+
<div class="docs-layout-margins-paddings docs-layout-margins-paddings--width-md docs-layout-grid-bg--color-7">container(md)</div>
|
|
112
|
+
</div>
|
|
113
|
+
<div class="docs-layout-margins-paddings--color-14 fd-padding-responsive--lg">
|
|
114
|
+
<div class="docs-layout-margins-paddings docs-layout-margins-paddings--width-md docs-layout-grid-bg--color-7">container(lg)</div>
|
|
115
|
+
</div>
|
|
116
|
+
<div class="docs-layout-margins-paddings--color-14 fd-padding-responsive--xl">
|
|
117
|
+
<div class="docs-layout-margins-paddings docs-layout-margins-paddings--width-lg docs-layout-grid-bg--color-7">container(xl)</div>
|
|
118
|
+
</div>
|
|
119
|
+
</div>
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
## Accessibility
|
|
123
|
+
|
|
124
|
+
- Use semantic HTML elements where appropriate
|
|
125
|
+
- Include proper ARIA attributes for interactive elements
|
|
126
|
+
- Ensure keyboard navigation support
|
|
127
|
+
- Provide adequate color contrast
|
|
128
|
+
|
|
129
|
+
## Source
|
|
130
|
+
|
|
131
|
+
This documentation was automatically generated from: `packages/styles/stories/Layouts/paddings/paddings.stories.js`
|
|
132
|
+
|
|
133
|
+
For the latest updates and interactive examples, see [Storybook](https://sap.github.io/fundamental-styles/).
|
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
---
|
|
2
|
+
component: section
|
|
3
|
+
title: Layouts/Section
|
|
4
|
+
category: Layouts
|
|
5
|
+
selector:
|
|
6
|
+
cssFile:
|
|
7
|
+
sourcePath: packages/styles/stories/Layouts/section/section.stories.js
|
|
8
|
+
tags: ["non-f3"]
|
|
9
|
+
dependencies: ["layout","layout-grid","layout-panel","section"]
|
|
10
|
+
relatedComponents: ["layout","layout-grid","layout-panel","section"]
|
|
11
|
+
stability: stable
|
|
12
|
+
generatedAt: 2026-06-09T18:29:01.679Z
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
# Layouts/Section
|
|
16
|
+
|
|
17
|
+
The section is a page-level structure container used to divide a page into stacked sections with appropriate padding applied. These should be used to separate large groups of content on a page.
|
|
18
|
+
|
|
19
|
+
You will generally use a section inside a page container which will give you the appropriate side margins. Since a section is full-width by default it can be used as a well with background colors or images.
|
|
20
|
+
|
|
21
|
+
Can hold two child types:
|
|
22
|
+
- \
|
|
23
|
+
|
|
24
|
+
## Dependencies
|
|
25
|
+
|
|
26
|
+
This component depends on the following CSS files:
|
|
27
|
+
|
|
28
|
+
- `layout.css`
|
|
29
|
+
- `layout-grid.css`
|
|
30
|
+
- `layout-panel.css`
|
|
31
|
+
- `section.css`
|
|
32
|
+
|
|
33
|
+
## Basic Usage
|
|
34
|
+
|
|
35
|
+
```html
|
|
36
|
+
<section class="fd-section">
|
|
37
|
+
.fd-section
|
|
38
|
+
</section>
|
|
39
|
+
<section class="fd-section">
|
|
40
|
+
.fd-section
|
|
41
|
+
</section>
|
|
42
|
+
<section class="fd-section">
|
|
43
|
+
.fd-section
|
|
44
|
+
</section>
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Related Components
|
|
48
|
+
|
|
49
|
+
This component works with or depends on:
|
|
50
|
+
|
|
51
|
+
- `layout`
|
|
52
|
+
- `layout-grid`
|
|
53
|
+
- `layout-panel`
|
|
54
|
+
- `section`
|
|
55
|
+
|
|
56
|
+
## Design Tokens
|
|
57
|
+
|
|
58
|
+
Key CSS variables used by this component:
|
|
59
|
+
|
|
60
|
+
- `--bleed`
|
|
61
|
+
- `--full-bleed`
|
|
62
|
+
- `--no-border`
|
|
63
|
+
- `--sapFontHeader2Size`
|
|
64
|
+
- `--sapTitleColor`
|
|
65
|
+
- `--sapToolbar_Background`
|
|
66
|
+
|
|
67
|
+
## Examples
|
|
68
|
+
|
|
69
|
+
### Section Structure
|
|
70
|
+
|
|
71
|
+
```html
|
|
72
|
+
<section class="fd-section">
|
|
73
|
+
.fd-section
|
|
74
|
+
</section>
|
|
75
|
+
<section class="fd-section">
|
|
76
|
+
.fd-section
|
|
77
|
+
</section>
|
|
78
|
+
<section class="fd-section">
|
|
79
|
+
.fd-section
|
|
80
|
+
</section>
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
### With Layout Grid
|
|
84
|
+
|
|
85
|
+
Shows an example with the grid span helper class.
|
|
86
|
+
This is most appropriate when displaying a collection of content in a linear order.
|
|
87
|
+
|
|
88
|
+
```html
|
|
89
|
+
<section class="fd-section">
|
|
90
|
+
<div class="fd-container">
|
|
91
|
+
<div class="fd-row">
|
|
92
|
+
<div class="fd-col fd-col--4">
|
|
93
|
+
<div class="fd-layout-panel">
|
|
94
|
+
<div class="fd-layout-panel__body">
|
|
95
|
+
<p>.fd-layout-panel</p>
|
|
96
|
+
</div>
|
|
97
|
+
</div>
|
|
98
|
+
</div>
|
|
99
|
+
<div class="fd-col fd-col--4">
|
|
100
|
+
|
|
101
|
+
<div class="fd-layout-panel">
|
|
102
|
+
<div class="fd-layout-panel__body">
|
|
103
|
+
<p>.fd-layout-panel</p>
|
|
104
|
+
</div>
|
|
105
|
+
</div>
|
|
106
|
+
</div>
|
|
107
|
+
<div class="fd-col fd-col--4">
|
|
108
|
+
<div class="fd-layout-panel">
|
|
109
|
+
<div class="fd-layout-panel__body">
|
|
110
|
+
<p>.fd-layout-panel</p>
|
|
111
|
+
</div>
|
|
112
|
+
</div>
|
|
113
|
+
</div>
|
|
114
|
+
<div class="fd-col fd-col--4">
|
|
115
|
+
<div class="fd-layout-panel">
|
|
116
|
+
<div class="fd-layout-panel__body">
|
|
117
|
+
<p>.fd-layout-panel</p>
|
|
118
|
+
</div>
|
|
119
|
+
</div>
|
|
120
|
+
</div>
|
|
121
|
+
<div class="fd-col fd-col--4">
|
|
122
|
+
<div class="fd-layout-panel">
|
|
123
|
+
<div class="fd-layout-panel__body">
|
|
124
|
+
<p>.fd-layout-panel</p>
|
|
125
|
+
</div>
|
|
126
|
+
</div>
|
|
127
|
+
</div>
|
|
128
|
+
</div>
|
|
129
|
+
</div>
|
|
130
|
+
</section>
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
### With Panels
|
|
134
|
+
|
|
135
|
+
Shows an alternate layout option using columns.
|
|
136
|
+
This may be more appropriate depending on the need to maintain source order and structure.
|
|
137
|
+
|
|
138
|
+
```html
|
|
139
|
+
<section class="fd-section">
|
|
140
|
+
<div class="fd-layout-panel">
|
|
141
|
+
<div class="fd-layout-panel__header">
|
|
142
|
+
<div class="fd-layout-panel__head">
|
|
143
|
+
<h3 class="fd-layout-panel__title">
|
|
144
|
+
.fd-layout-panel__title
|
|
145
|
+
</h3>
|
|
146
|
+
<p class="fd-layout-panel__description">
|
|
147
|
+
.fd-layout-panel__description
|
|
148
|
+
</p>
|
|
149
|
+
</div>
|
|
150
|
+
<div class="fd-layout-panel__actions">
|
|
151
|
+
.fd-layout-panel__actions
|
|
152
|
+
</div>
|
|
153
|
+
</div>
|
|
154
|
+
<div class="fd-layout-panel__filters" id="">
|
|
155
|
+
.fd-layout-panel__filters
|
|
156
|
+
</div>
|
|
157
|
+
<div class="fd-layout-panel__body">
|
|
158
|
+
.fd-layout-panel__body
|
|
159
|
+
</div>
|
|
160
|
+
<div class="fd-layout-panel__footer">
|
|
161
|
+
.fd-layout-panel__footer
|
|
162
|
+
</div>
|
|
163
|
+
</div>
|
|
164
|
+
</section>
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
### With Headers
|
|
168
|
+
|
|
169
|
+
Header and title elements are available when necessary to label content groups.
|
|
170
|
+
|
|
171
|
+
```html
|
|
172
|
+
<section class="fd-section">
|
|
173
|
+
<div class="fd-section__header">
|
|
174
|
+
<h3 class="fd-section__title">Section title</h3>
|
|
175
|
+
</div>
|
|
176
|
+
<div class="fd-layout-panel">
|
|
177
|
+
<div class="fd-layout-panel__body">
|
|
178
|
+
fd-layout-panel
|
|
179
|
+
</div>
|
|
180
|
+
</div>
|
|
181
|
+
</section>
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
### TestingSimpleSection
|
|
185
|
+
|
|
186
|
+
```html
|
|
187
|
+
<section class='fd-section '>
|
|
188
|
+
Simple Section
|
|
189
|
+
</section>
|
|
190
|
+
|
|
191
|
+
<section class='fd-section '>
|
|
192
|
+
<div class='fd-section__header'>
|
|
193
|
+
<h3 class='fd-section__title'>Section Title</h3>
|
|
194
|
+
</div>
|
|
195
|
+
Section Content
|
|
196
|
+
</section>
|
|
197
|
+
|
|
198
|
+
<section class='fd-section '>
|
|
199
|
+
<div class='fd-section__header'>
|
|
200
|
+
<h3 class='fd-section__title'>Title</h3>
|
|
201
|
+
<div class='fd-section__actions'>action section</div>
|
|
202
|
+
</div>
|
|
203
|
+
Section Content
|
|
204
|
+
</section>
|
|
205
|
+
|
|
206
|
+
<section class='fd-section '>
|
|
207
|
+
<div class='fd-section__header'>
|
|
208
|
+
<h3 class='fd-section__title'>Title</h3>
|
|
209
|
+
<div class='fd-section__actions'>action part</div>
|
|
210
|
+
</div>
|
|
211
|
+
Section Content
|
|
212
|
+
<div class='fd-section__footer'>footer part</div>
|
|
213
|
+
</section>
|
|
214
|
+
|
|
215
|
+
<section class='fd-section fd-section--full-bleed'>
|
|
216
|
+
<div class='fd-section__header'>
|
|
217
|
+
<h3 class='fd-section__title'>Title</h3>
|
|
218
|
+
<div class='fd-section__actions'>action part</div>
|
|
219
|
+
</div>
|
|
220
|
+
Section Content with Full Bleed
|
|
221
|
+
<div class='fd-section__footer'>footer part</div>
|
|
222
|
+
</section>
|
|
223
|
+
|
|
224
|
+
<section class='fd-section '>Simple Section</section>
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
### TestingSectionWithHeadlines
|
|
228
|
+
|
|
229
|
+
```html
|
|
230
|
+
<section class='fd-section '>
|
|
231
|
+
<div class='fd-section__header'>
|
|
232
|
+
<h2 class='fd-section__title'>section with h2 headline</h2>
|
|
233
|
+
<div class='fd-section__actions'>action part</div>
|
|
234
|
+
</div>
|
|
235
|
+
Section Content
|
|
236
|
+
<div class='fd-section__footer'>footer part</div>
|
|
237
|
+
</section>
|
|
238
|
+
|
|
239
|
+
<section class='fd-section '>
|
|
240
|
+
<div class='fd-section__header'>
|
|
241
|
+
<h3 class='fd-section__title'>section with h3 headline</h3>
|
|
242
|
+
<div class='fd-section__actions'>action part</div>
|
|
243
|
+
</div>
|
|
244
|
+
Section Content
|
|
245
|
+
<div class='fd-section__footer'>footer part</div>
|
|
246
|
+
</section>
|
|
247
|
+
|
|
248
|
+
<section class='fd-section '>
|
|
249
|
+
<div class='fd-section__header'>
|
|
250
|
+
<h4 class='fd-section__title'>section with h4 headline</h4>
|
|
251
|
+
<div class='fd-section__actions'>action part</div>
|
|
252
|
+
</div>
|
|
253
|
+
Section Content
|
|
254
|
+
<div class='fd-section__footer'>footer part</div>
|
|
255
|
+
</section>
|
|
256
|
+
|
|
257
|
+
<section class='fd-section '>
|
|
258
|
+
<div class='fd-section__header'>
|
|
259
|
+
<h5 class='fd-section__title'>section with h5 headline</h5>
|
|
260
|
+
<div class='fd-section__actions'>action part</div>
|
|
261
|
+
</div>
|
|
262
|
+
Section Content
|
|
263
|
+
<div class='fd-section__footer'>footer part</div>
|
|
264
|
+
</section>
|
|
265
|
+
|
|
266
|
+
<section class='fd-section '>
|
|
267
|
+
<div class='fd-section__header'>
|
|
268
|
+
<h6 class='fd-section__title'>section with h6 headline</h6>
|
|
269
|
+
<div class='fd-section__actions'>action part</div>
|
|
270
|
+
</div>
|
|
271
|
+
Section Content
|
|
272
|
+
<div class='fd-section__footer'>footer part</div>
|
|
273
|
+
</section>
|
|
274
|
+
```
|
|
275
|
+
|
|
276
|
+
## Accessibility
|
|
277
|
+
|
|
278
|
+
- Use semantic HTML elements where appropriate
|
|
279
|
+
- Include proper ARIA attributes for interactive elements
|
|
280
|
+
- Ensure keyboard navigation support
|
|
281
|
+
- Provide adequate color contrast
|
|
282
|
+
|
|
283
|
+
## Source
|
|
284
|
+
|
|
285
|
+
This documentation was automatically generated from: `packages/styles/stories/Layouts/section/section.stories.js`
|
|
286
|
+
|
|
287
|
+
For the latest updates and interactive examples, see [Storybook](https://sap.github.io/fundamental-styles/).
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
---
|
|
2
|
+
component: fd-list
|
|
3
|
+
title: Components/List/Subline
|
|
4
|
+
category: Components
|
|
5
|
+
selector: fd-list
|
|
6
|
+
cssFile: list.css
|
|
7
|
+
sourcePath: packages/styles/stories/Components/List/list/subline/subline-list.stories.js
|
|
8
|
+
tags: []
|
|
9
|
+
dependencies: []
|
|
10
|
+
relatedComponents: []
|
|
11
|
+
stability: stable
|
|
12
|
+
generatedAt: 2026-06-09T18:29:01.589Z
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
# Components/List/Subline
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
## Installation
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
npm install fundamental-styles
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
```html
|
|
26
|
+
<!-- Include theme -->
|
|
27
|
+
<link href="node_modules/fundamental-styles/dist/theming/sap_horizon.css" rel="stylesheet">
|
|
28
|
+
|
|
29
|
+
<!-- Include component CSS -->
|
|
30
|
+
<link href="node_modules/fundamental-styles/dist/list.css" rel="stylesheet">
|
|
31
|
+
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Basic Usage
|
|
35
|
+
|
|
36
|
+
```html
|
|
37
|
+
<ul class="fd-list fd-list--subline" role="list">
|
|
38
|
+
<li role="listitem" tabindex="0" class="fd-list__item fd-list__item--interractive">
|
|
39
|
+
<span class="fd-avatar fd-avatar--sm fd-avatar--circle fd-avatar--thumbnail" role="img" aria-label="Jane Doe"></span>
|
|
40
|
+
<div class="fd-list__content">
|
|
41
|
+
<div class="fd-list__title">List Item Title</div>
|
|
42
|
+
<div class="fd-list__subline">List Item Subline</div>
|
|
43
|
+
<div class="fd-list__subline">List Item Subline</div>
|
|
44
|
+
</div>
|
|
45
|
+
</li>
|
|
46
|
+
<li role="listitem" tabindex="0" class="fd-list__item fd-list__item--interractive">
|
|
47
|
+
<span class="fd-avatar fd-avatar--sm fd-avatar--circle fd-avatar--thumbnail" role="img" aria-label="John Doe"></span>
|
|
48
|
+
<div class="fd-list__content">
|
|
49
|
+
<div class="fd-list__title">List Item Title</div>
|
|
50
|
+
<div class="fd-list__subline">List Item Subline</div>
|
|
51
|
+
<div class="fd-list__subline">List Item Subline</div>
|
|
52
|
+
</div>
|
|
53
|
+
<span class="fd-list__active-indicator sap-icon--sys-enter-2"></span>
|
|
54
|
+
</li>
|
|
55
|
+
<li role="listitem" tabindex="0" class="fd-list__item fd-list__item--interractive">
|
|
56
|
+
<span class="fd-avatar fd-avatar--sm fd-avatar--circle fd-avatar--accent-color-10" aria-role="img" aria-label="John Doe">JD</span>
|
|
57
|
+
<div class="fd-list__content">
|
|
58
|
+
<div class="fd-list__title">List Item Title Lorem, ipsum dolor sit amet consectetur adipisicing elit. Incidunt, quod deleniti optio earum voluptatem in, nam et ratione aliquam error facilis expedita magnam repudiandae rerum sint blanditiis rem quo? Lorem, ipsum dolor sit amet consectetur adipisicing elit. Incidunt, quod deleniti optio earum voluptatem in, nam et ratione aliquam error facilis expedita magnam repudiandae rerum sint blanditiis rem quo!</div>
|
|
59
|
+
<div class="fd-list__subline">List Item Subline Lorem ipsum dolor sit amet consectetur adipisicing elit. Quia saepe doloribus nulla aliquid soluta aperiam, amet iste sint? Explicabo dicta doloremque amet minima perferendis. Necessitatibus reiciendis voluptatum id nesciunt earum! Lorem, ipsum dolor sit amet consectetur adipisicing elit. Incidunt, quod deleniti optio earum voluptatem in, nam et ratione aliquam error facilis expedita magnam repudiandae rerum sint blanditiis rem quo.</div>
|
|
60
|
+
<div class="fd-list__subline">List Item Subline Lorem ipsum dolor sit amet consectetur adipisicing elit. Eaque asperiores id deleniti quae? Amet officia cum assumenda. Ab, dolores ea dignissimos, aliquid beatae magnam commodi, tenetur facere harum ex nemo? Lorem, ipsum dolor sit amet consectetur adipisicing elit. Incidunt, quod deleniti optio earum voluptatem in, nam et ratione aliquam error facilis expedita magnam repudiandae rerum sint blanditiis rem quo.</div>
|
|
61
|
+
</div>
|
|
62
|
+
</li>
|
|
63
|
+
<li role="listitem" tabindex="0" class="fd-list__item fd-list__item--interractive">
|
|
64
|
+
<span class="fd-avatar fd-avatar--sm fd-avatar--thumbnail" role="img" aria-label="John Doe"></span>
|
|
65
|
+
<div class="fd-list__content">
|
|
66
|
+
<div class="fd-list__title fd-list__title--truncate">List Item Title Lorem, ipsum dolor sit amet consectetur adipisicing elit. Incidunt, quod deleniti optio earum voluptatem in, nam et ratione aliquam error facilis expedita magnam repudiandae rerum sint blanditiis rem quo? Lorem, ipsum dolor sit amet consectetur adipisicing elit. Incidunt, quod deleniti optio earum voluptatem in, nam et ratione aliquam error facilis expedita magnam repudiandae rerum sint blanditiis rem quo!</div>
|
|
67
|
+
<div class="fd-list__subline fd-list__subline--truncate">List Item Subline Lorem ipsum dolor sit amet consectetur adipisicing elit. Quia saepe doloribus nulla aliquid soluta aperiam, amet iste sint? Explicabo dicta doloremque amet minima perferendis. Necessitatibus reiciendis voluptatum id nesciunt earum! Lorem, ipsum dolor sit amet consectetur adipisicing elit. Incidunt, quod deleniti optio earum voluptatem in, nam et ratione aliquam error facilis expedita magnam repudiandae rerum sint blanditiis rem quo.</div>
|
|
68
|
+
<div class="fd-list__subline fd-list__subline--truncate">List Item Subline Lorem ipsum dolor sit amet consectetur adipisicing elit. Eaque asperiores id deleniti quae? Amet officia cum assumenda. Ab, dolores ea dignissimos, aliquid beatae magnam commodi, tenetur facere harum ex nemo? Lorem, ipsum dolor sit amet consectetur adipisicing elit. Incidunt, quod deleniti optio earum voluptatem in, nam et ratione aliquam error facilis expedita magnam repudiandae rerum sint blanditiis rem quo.</div>
|
|
69
|
+
</div>
|
|
70
|
+
</li>
|
|
71
|
+
</ul>
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## Modifiers
|
|
75
|
+
|
|
76
|
+
| Class | Description |
|
|
77
|
+
|-------|-------------|
|
|
78
|
+
| `fd-list--subline` | This is structure of the custom list item is being used to display the accounts in USer Menu. |
|
|
79
|
+
|
|
80
|
+
## BEM Elements
|
|
81
|
+
|
|
82
|
+
This component uses the following BEM elements:
|
|
83
|
+
|
|
84
|
+
- `fd-list__active-indicator`
|
|
85
|
+
- `fd-list__content`
|
|
86
|
+
- `fd-list__item`
|
|
87
|
+
- `fd-list__item--interractive`
|
|
88
|
+
- `fd-list__subline`
|
|
89
|
+
- `fd-list__subline--truncate`
|
|
90
|
+
- `fd-list__title`
|
|
91
|
+
- `fd-list__title--truncate`
|
|
92
|
+
|
|
93
|
+
## Examples
|
|
94
|
+
|
|
95
|
+
### Custom List Item with Subline
|
|
96
|
+
|
|
97
|
+
This is structure of the custom list item is being used to display the accounts in USer Menu.
|
|
98
|
+
|
|
99
|
+
```html
|
|
100
|
+
<ul class="fd-list fd-list--subline" role="list">
|
|
101
|
+
<li role="listitem" tabindex="0" class="fd-list__item fd-list__item--interractive">
|
|
102
|
+
<span class="fd-avatar fd-avatar--sm fd-avatar--circle fd-avatar--thumbnail" role="img" aria-label="Jane Doe"></span>
|
|
103
|
+
<div class="fd-list__content">
|
|
104
|
+
<div class="fd-list__title">List Item Title</div>
|
|
105
|
+
<div class="fd-list__subline">List Item Subline</div>
|
|
106
|
+
<div class="fd-list__subline">List Item Subline</div>
|
|
107
|
+
</div>
|
|
108
|
+
</li>
|
|
109
|
+
<li role="listitem" tabindex="0" class="fd-list__item fd-list__item--interractive">
|
|
110
|
+
<span class="fd-avatar fd-avatar--sm fd-avatar--circle fd-avatar--thumbnail" role="img" aria-label="John Doe"></span>
|
|
111
|
+
<div class="fd-list__content">
|
|
112
|
+
<div class="fd-list__title">List Item Title</div>
|
|
113
|
+
<div class="fd-list__subline">List Item Subline</div>
|
|
114
|
+
<div class="fd-list__subline">List Item Subline</div>
|
|
115
|
+
</div>
|
|
116
|
+
<span class="fd-list__active-indicator sap-icon--sys-enter-2"></span>
|
|
117
|
+
</li>
|
|
118
|
+
<li role="listitem" tabindex="0" class="fd-list__item fd-list__item--interractive">
|
|
119
|
+
<span class="fd-avatar fd-avatar--sm fd-avatar--circle fd-avatar--accent-color-10" aria-role="img" aria-label="John Doe">JD</span>
|
|
120
|
+
<div class="fd-list__content">
|
|
121
|
+
<div class="fd-list__title">List Item Title Lorem, ipsum dolor sit amet consectetur adipisicing elit. Incidunt, quod deleniti optio earum voluptatem in, nam et ratione aliquam error facilis expedita magnam repudiandae rerum sint blanditiis rem quo? Lorem, ipsum dolor sit amet consectetur adipisicing elit. Incidunt, quod deleniti optio earum voluptatem in, nam et ratione aliquam error facilis expedita magnam repudiandae rerum sint blanditiis rem quo!</div>
|
|
122
|
+
<div class="fd-list__subline">List Item Subline Lorem ipsum dolor sit amet consectetur adipisicing elit. Quia saepe doloribus nulla aliquid soluta aperiam, amet iste sint? Explicabo dicta doloremque amet minima perferendis. Necessitatibus reiciendis voluptatum id nesciunt earum! Lorem, ipsum dolor sit amet consectetur adipisicing elit. Incidunt, quod deleniti optio earum voluptatem in, nam et ratione aliquam error facilis expedita magnam repudiandae rerum sint blanditiis rem quo.</div>
|
|
123
|
+
<div class="fd-list__subline">List Item Subline Lorem ipsum dolor sit amet consectetur adipisicing elit. Eaque asperiores id deleniti quae? Amet officia cum assumenda. Ab, dolores ea dignissimos, aliquid beatae magnam commodi, tenetur facere harum ex nemo? Lorem, ipsum dolor sit amet consectetur adipisicing elit. Incidunt, quod deleniti optio earum voluptatem in, nam et ratione aliquam error facilis expedita magnam repudiandae rerum sint blanditiis rem quo.</div>
|
|
124
|
+
</div>
|
|
125
|
+
</li>
|
|
126
|
+
<li role="listitem" tabindex="0" class="fd-list__item fd-list__item--interractive">
|
|
127
|
+
<span class="fd-avatar fd-avatar--sm fd-avatar--thumbnail" role="img" aria-label="John Doe"></span>
|
|
128
|
+
<div class="fd-list__content">
|
|
129
|
+
<div class="fd-list__title fd-list__title--truncate">List Item Title Lorem, ipsum dolor sit amet consectetur adipisicing elit. Incidunt, quod deleniti optio earum voluptatem in, nam et ratione aliquam error facilis expedita magnam repudiandae rerum sint blanditiis rem quo? Lorem, ipsum dolor sit amet consectetur adipisicing elit. Incidunt, quod deleniti optio earum voluptatem in, nam et ratione aliquam error facilis expedita magnam repudiandae rerum sint blanditiis rem quo!</div>
|
|
130
|
+
<div class="fd-list__subline fd-list__subline--truncate">List Item Subline Lorem ipsum dolor sit amet consectetur adipisicing elit. Quia saepe doloribus nulla aliquid soluta aperiam, amet iste sint? Explicabo dicta doloremque amet minima perferendis. Necessitatibus reiciendis voluptatum id nesciunt earum! Lorem, ipsum dolor sit amet consectetur adipisicing elit. Incidunt, quod deleniti optio earum voluptatem in, nam et ratione aliquam error facilis expedita magnam repudiandae rerum sint blanditiis rem quo.</div>
|
|
131
|
+
<div class="fd-list__subline fd-list__subline--truncate">List Item Subline Lorem ipsum dolor sit amet consectetur adipisicing elit. Eaque asperiores id deleniti quae? Amet officia cum assumenda. Ab, dolores ea dignissimos, aliquid beatae magnam commodi, tenetur facere harum ex nemo? Lorem, ipsum dolor sit amet consectetur adipisicing elit. Incidunt, quod deleniti optio earum voluptatem in, nam et ratione aliquam error facilis expedita magnam repudiandae rerum sint blanditiis rem quo.</div>
|
|
132
|
+
</div>
|
|
133
|
+
</li>
|
|
134
|
+
</ul>
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
## Accessibility
|
|
138
|
+
|
|
139
|
+
- Use semantic HTML elements where appropriate
|
|
140
|
+
- Include proper ARIA attributes for interactive elements
|
|
141
|
+
- Ensure keyboard navigation support
|
|
142
|
+
- Provide adequate color contrast
|
|
143
|
+
|
|
144
|
+
## Source
|
|
145
|
+
|
|
146
|
+
This documentation was automatically generated from: `packages/styles/stories/Components/List/list/subline/subline-list.stories.js`
|
|
147
|
+
|
|
148
|
+
For the latest updates and interactive examples, see [Storybook](https://sap.github.io/fundamental-styles/).
|