@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,87 @@
|
|
|
1
|
+
---
|
|
2
|
+
component: fd-off-screen
|
|
3
|
+
title: Dev/Off Screen
|
|
4
|
+
category: Dev
|
|
5
|
+
selector: fd-off-screen
|
|
6
|
+
cssFile: off-screen.css
|
|
7
|
+
sourcePath: packages/styles/stories/Dev/off-screen/off-screen.stories.js
|
|
8
|
+
tags: ["a11y"]
|
|
9
|
+
dependencies: ["off-screen","text"]
|
|
10
|
+
relatedComponents: ["off-screen","text"]
|
|
11
|
+
stability: experimental
|
|
12
|
+
generatedAt: 2026-06-09T18:29:01.680Z
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
# Dev/Off Screen
|
|
16
|
+
|
|
17
|
+
> **🧪 EXPERIMENTAL**: This component is experimental and its API may change.
|
|
18
|
+
|
|
19
|
+
For aria-live to read any change in element, we need to place element but it should not be visible to user.
|
|
20
|
+
At the same time, it can not be made \
|
|
21
|
+
|
|
22
|
+
## Dependencies
|
|
23
|
+
|
|
24
|
+
This component depends on the following CSS files:
|
|
25
|
+
|
|
26
|
+
- `off-screen.css`
|
|
27
|
+
- `text.css`
|
|
28
|
+
|
|
29
|
+
## Installation
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
npm install fundamental-styles
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
```html
|
|
36
|
+
<!-- Include theme -->
|
|
37
|
+
<link href="node_modules/fundamental-styles/dist/theming/sap_horizon.css" rel="stylesheet">
|
|
38
|
+
|
|
39
|
+
<!-- Include component CSS -->
|
|
40
|
+
<link href="node_modules/fundamental-styles/dist/off-screen.css" rel="stylesheet">
|
|
41
|
+
|
|
42
|
+
<!-- Include dependencies -->
|
|
43
|
+
<link href="node_modules/fundamental-styles/dist/off-screen.css" rel="stylesheet">
|
|
44
|
+
<link href="node_modules/fundamental-styles/dist/text.css" rel="stylesheet">
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Basic Usage
|
|
48
|
+
|
|
49
|
+
```html
|
|
50
|
+
<div class="fd-off-screen" aria-live="polite">
|
|
51
|
+
This will be read, whenever this element changes.
|
|
52
|
+
</div>
|
|
53
|
+
<div class="fd-text">Text with aria-live is kept far left of the screen. so it will not be visible, but it will be read by screen reader.</div>
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Related Components
|
|
57
|
+
|
|
58
|
+
This component works with or depends on:
|
|
59
|
+
|
|
60
|
+
- `off-screen`
|
|
61
|
+
- `text`
|
|
62
|
+
|
|
63
|
+
## Examples
|
|
64
|
+
|
|
65
|
+
### Primary
|
|
66
|
+
|
|
67
|
+
For aria-live to read any change in element, we need to place element but it should not be visible to user.
|
|
68
|
+
|
|
69
|
+
```html
|
|
70
|
+
<div class="fd-off-screen" aria-live="polite">
|
|
71
|
+
This will be read, whenever this element changes.
|
|
72
|
+
</div>
|
|
73
|
+
<div class="fd-text">Text with aria-live is kept far left of the screen. so it will not be visible, but it will be read by screen reader.</div>
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
## Accessibility
|
|
77
|
+
|
|
78
|
+
- Use semantic HTML elements where appropriate
|
|
79
|
+
- Include proper ARIA attributes for interactive elements
|
|
80
|
+
- Ensure keyboard navigation support
|
|
81
|
+
- Provide adequate color contrast
|
|
82
|
+
|
|
83
|
+
## Source
|
|
84
|
+
|
|
85
|
+
This documentation was automatically generated from: `packages/styles/stories/Dev/off-screen/off-screen.stories.js`
|
|
86
|
+
|
|
87
|
+
For the latest updates and interactive examples, see [Storybook](https://sap.github.io/fundamental-styles/).
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
---
|
|
2
|
+
component: overflow
|
|
3
|
+
title: Overflow
|
|
4
|
+
category: overflow
|
|
5
|
+
selector:
|
|
6
|
+
cssFile:
|
|
7
|
+
sourcePath: packages/common-css/stories/overflow/overflow.stories.js
|
|
8
|
+
tags: []
|
|
9
|
+
dependencies: []
|
|
10
|
+
relatedComponents: []
|
|
11
|
+
stability: stable
|
|
12
|
+
generatedAt: 2026-06-09T18:29:01.665Z
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
# Overflow
|
|
16
|
+
|
|
17
|
+
The overflow property controls what happens to content that is too big to fit into an area. <br>
|
|
18
|
+
The following values are available:
|
|
19
|
+
<ul>
|
|
20
|
+
<li><b>visible</b>: default value. The overflow is not clipped and the content renders outside the element's box</li>
|
|
21
|
+
<li><b>hidden</b>: the overflow is clipped to fit into the area, and the rest of the content will be hidden</li>
|
|
22
|
+
<li><b>scroll</b>: the overflow is clipped, and a scrollbar is added to see the rest of the content</li>
|
|
23
|
+
<li><b>auto</b>: the overflow is not clipped, scrollbars are added only when necessary</li>
|
|
24
|
+
</ul>
|
|
25
|
+
|
|
26
|
+
## Basic Usage
|
|
27
|
+
|
|
28
|
+
```html
|
|
29
|
+
<div>
|
|
30
|
+
<div class="sap-overflow-visible">
|
|
31
|
+
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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Examples
|
|
37
|
+
|
|
38
|
+
### OverflowVisible
|
|
39
|
+
|
|
40
|
+
For overflow visible use: <code>.sap-overflow-visible</code>, <code>.sap-overflow-x-visible</code> or <code>.sap-overflow-y-visible</code> classes.
|
|
41
|
+
|
|
42
|
+
```html
|
|
43
|
+
<div>
|
|
44
|
+
<div class="sap-overflow-visible">
|
|
45
|
+
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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
46
|
+
</div>
|
|
47
|
+
</div>
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### OverflowHidden
|
|
51
|
+
|
|
52
|
+
For overflow hidden use: <code>.sap-overflow-hidden</code>, <code>.sap-overflow-x-hidden</code> or <code>.sap-overflow-y-hidden</code> classes.
|
|
53
|
+
|
|
54
|
+
```html
|
|
55
|
+
<div>
|
|
56
|
+
<div class="sap-overflow-hidden">
|
|
57
|
+
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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
58
|
+
</div>
|
|
59
|
+
</div>
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### OverflowScroll
|
|
63
|
+
|
|
64
|
+
For overflow scroll use: <code>.sap-overflow-scroll</code>, <code>.sap-overflow-x-scroll</code> or <code>.sap-overflow-y-scroll</code> classes.
|
|
65
|
+
|
|
66
|
+
```html
|
|
67
|
+
<div>
|
|
68
|
+
<div class="sap-overflow-scroll">
|
|
69
|
+
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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
70
|
+
</div>
|
|
71
|
+
</div>
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### OverflowAuto
|
|
75
|
+
|
|
76
|
+
For overflow auto use: <code>.sap-overflow-auto</code>, <code>.sap-overflow-x-auto</code> or <code>.sap-overflow-y-auto</code> classes.
|
|
77
|
+
|
|
78
|
+
```html
|
|
79
|
+
<div>
|
|
80
|
+
<div class="sap-overflow-auto">
|
|
81
|
+
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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
82
|
+
</div>
|
|
83
|
+
</div>
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
## Accessibility
|
|
87
|
+
|
|
88
|
+
- Use semantic HTML elements where appropriate
|
|
89
|
+
- Include proper ARIA attributes for interactive elements
|
|
90
|
+
- Ensure keyboard navigation support
|
|
91
|
+
- Provide adequate color contrast
|
|
92
|
+
|
|
93
|
+
## Source
|
|
94
|
+
|
|
95
|
+
This documentation was automatically generated from: `packages/common-css/stories/overflow/overflow.stories.js`
|
|
96
|
+
|
|
97
|
+
For the latest updates and interactive examples, see [Storybook](https://sap.github.io/fundamental-styles/).
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
---
|
|
2
|
+
component: padding
|
|
3
|
+
title: Padding
|
|
4
|
+
category: padding
|
|
5
|
+
selector:
|
|
6
|
+
cssFile:
|
|
7
|
+
sourcePath: packages/common-css/stories/padding/padding.stories.js
|
|
8
|
+
tags: []
|
|
9
|
+
dependencies: []
|
|
10
|
+
relatedComponents: []
|
|
11
|
+
stability: stable
|
|
12
|
+
generatedAt: 2026-06-09T18:29:01.663Z
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
# Padding
|
|
16
|
+
|
|
17
|
+
The CSS padding properties are used to generate space around an element's content, inside of any defined borders.
|
|
18
|
+
|
|
19
|
+
## Basic Usage
|
|
20
|
+
|
|
21
|
+
```html
|
|
22
|
+
<pre>
|
|
23
|
+
.custom-card {
|
|
24
|
+
background: var(--sapBackgroundColor);
|
|
25
|
+
width: 4rem;
|
|
26
|
+
height: 6rem;
|
|
27
|
+
|
|
28
|
+
@include sap-set-padding-x(1.5rem);
|
|
29
|
+
@include sap-set-padding-y(0.25rem);
|
|
30
|
+
}
|
|
31
|
+
</pre>
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Examples
|
|
35
|
+
|
|
36
|
+
### HelperMixins
|
|
37
|
+
|
|
38
|
+
<table style="width: 100%; border-collapse: collapse; margin-top: 1rem;">
|
|
39
|
+
<tr>
|
|
40
|
+
<th style="padding: 0.25rem 0.75rem;">Mixin</th>
|
|
41
|
+
<th style="padding: 0.25rem 0.75rem;">Resultant CSS</th>
|
|
42
|
+
<th style="padding: 0.25rem 0.75rem;">$value</th>
|
|
43
|
+
</tr>
|
|
44
|
+
<tr>
|
|
45
|
+
<td style="padding: 0.25rem 0.75rem;">@include sap-set-padding-all($value)</td>
|
|
46
|
+
<td style="padding: 0.25rem 0.75rem;">padding: $value;</td>
|
|
47
|
+
<td style="padding: 0.25rem 0.75rem;">defined by the user</td>
|
|
48
|
+
</tr>
|
|
49
|
+
<tr>
|
|
50
|
+
<td style="padding: 0.25rem 0.75rem;">@include sap-set-padding-top($value)</td>
|
|
51
|
+
<td style="padding: 0.25rem 0.75rem;">padding-block-start: $value;</td>
|
|
52
|
+
<td style="padding: 0.25rem 0.75rem;">defined by the user</td>
|
|
53
|
+
</tr>
|
|
54
|
+
<tr>
|
|
55
|
+
<td style="padding: 0.25rem 0.75rem;">@include sap-set-padding-bottom($value)</td>
|
|
56
|
+
<td style="padding: 0.25rem 0.75rem;">padding-block-end: $value;</td>
|
|
57
|
+
<td style="padding: 0.25rem 0.75rem;">defined by the user</td>
|
|
58
|
+
</tr>
|
|
59
|
+
<tr>
|
|
60
|
+
<td style="padding: 0.25rem 0.75rem;">@include sap-set-padding-begin($value)</td>
|
|
61
|
+
<td style="padding: 0.25rem 0.75rem;">padding-inline-start: $value;</td>
|
|
62
|
+
<td style="padding: 0.25rem 0.75rem;">defined by the user</td>
|
|
63
|
+
</tr>
|
|
64
|
+
<tr>
|
|
65
|
+
<td style="padding: 0.25rem 0.75rem;">@include sap-set-padding-end($value)</td>
|
|
66
|
+
<td style="padding: 0.25rem 0.75rem;">padding-inline-end: $value;</td>
|
|
67
|
+
<td style="padding: 0.25rem 0.75rem;">defined by the user</td>
|
|
68
|
+
</tr>
|
|
69
|
+
<tr>
|
|
70
|
+
<td style="padding: 0.25rem 0.75rem;">@include sap-set-padding-x-equal($value)</td>
|
|
71
|
+
<td style="padding: 0.25rem 0.75rem;">padding-inline: $value;</td>
|
|
72
|
+
<td style="padding: 0.25rem 0.75rem;">defined by the user</td>
|
|
73
|
+
</tr>
|
|
74
|
+
<tr>
|
|
75
|
+
<td style="padding: 0.25rem 0.75rem;">@include sap-set-padding-y-equal($value)</td>
|
|
76
|
+
<td style="padding: 0.25rem 0.75rem;">padding-block: $value;</td>
|
|
77
|
+
<td style="padding: 0.25rem 0.75rem;">defined by the user</td>
|
|
78
|
+
</tr>
|
|
79
|
+
<tr>
|
|
80
|
+
<td style="padding: 0.25rem 0.75rem;">@include sap-set-padding-x($valueLeft, $valueRight)</td>
|
|
81
|
+
<td style="padding: 0.25rem 0.75rem;">padding-inline-start: $valueLeft;<br>padding-inline-end: $valueRight;</td>
|
|
82
|
+
<td style="padding: 0.25rem 0.75rem;">defined by the user</td>
|
|
83
|
+
</tr>
|
|
84
|
+
<tr>
|
|
85
|
+
<td style="padding: 0.25rem 0.75rem;">@include sap-set-padding-y($valueTop, $valueBottom)</td>
|
|
86
|
+
<td style="padding: 0.25rem 0.75rem;">padding-block-start: $valueTop;<br>padding-block-end: $valueBottom;</td>
|
|
87
|
+
<td style="padding: 0.25rem 0.75rem;">defined by the user</td>
|
|
88
|
+
</tr>
|
|
89
|
+
<tr>
|
|
90
|
+
<td style="padding: 0.25rem 0.75rem;">@include sap-padding($value, $side)</td>
|
|
91
|
+
<td style="padding: 0.25rem 0.75rem;">based on parameters</td>
|
|
92
|
+
<td style="padding: 0.25rem 0.75rem;">$value: tiny, small, medium, large or defined by the user <br> $side:
|
|
93
|
+
top, bottom, begin, end, x, y, inline, block, inline-start, inline-end, block-start, block-end
|
|
94
|
+
</td>
|
|
95
|
+
</tr>
|
|
96
|
+
</table>
|
|
97
|
+
|
|
98
|
+
```html
|
|
99
|
+
<pre>
|
|
100
|
+
.custom-card {
|
|
101
|
+
background: var(--sapBackgroundColor);
|
|
102
|
+
width: 4rem;
|
|
103
|
+
height: 6rem;
|
|
104
|
+
|
|
105
|
+
@include sap-set-padding-x(1.5rem);
|
|
106
|
+
@include sap-set-padding-y(0.25rem);
|
|
107
|
+
}
|
|
108
|
+
</pre>
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
## Accessibility
|
|
112
|
+
|
|
113
|
+
- Use semantic HTML elements where appropriate
|
|
114
|
+
- Include proper ARIA attributes for interactive elements
|
|
115
|
+
- Ensure keyboard navigation support
|
|
116
|
+
- Provide adequate color contrast
|
|
117
|
+
|
|
118
|
+
## Source
|
|
119
|
+
|
|
120
|
+
This documentation was automatically generated from: `packages/common-css/stories/padding/padding.stories.js`
|
|
121
|
+
|
|
122
|
+
For the latest updates and interactive examples, see [Storybook](https://sap.github.io/fundamental-styles/).
|
|
@@ -0,0 +1,130 @@
|
|
|
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
|
+
generatedAt: 2026-05-28T15:51:35.742Z
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Layouts/Paddings
|
|
12
|
+
|
|
13
|
+
The CSS padding properties are used to generate space around an element's content, inside of any defined borders.
|
|
14
|
+
With CSS, you have full control over the padding. There are properties for setting the padding for each side of an element.
|
|
15
|
+
We now provide a number of predefined padding clases which add predefined padding values.
|
|
16
|
+
|
|
17
|
+
## Basic Usage
|
|
18
|
+
|
|
19
|
+
```html
|
|
20
|
+
<div class="docs-column-flex docs-column-flex--align-start">
|
|
21
|
+
<div class="docs-layout-margins-paddings--color-14 fd-padding">
|
|
22
|
+
<div class="docs-layout-margins-paddings docs-layout-margins-paddings--width docs-layout-grid-bg--color-7">container</div>
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Modifiers
|
|
28
|
+
|
|
29
|
+
| Class | Description |
|
|
30
|
+
|-------|-------------|
|
|
31
|
+
| `--align-start` | Style variant |
|
|
32
|
+
| `--color-` | Style variant |
|
|
33
|
+
| `--lg` | Style variant |
|
|
34
|
+
| `--md` | Style variant |
|
|
35
|
+
| `--none` | Style variant |
|
|
36
|
+
| `--padded` | Style variant |
|
|
37
|
+
| `--sm` | Style variant |
|
|
38
|
+
| `--tiny` | Style variant |
|
|
39
|
+
| `--width` | The responsive padding class adds a double sided padding inside a container based on its width. Use \ |
|
|
40
|
+
| `--width-lg` | Style variant |
|
|
41
|
+
| `--width-md` | Style variant |
|
|
42
|
+
| `--width-sm` | Style variant |
|
|
43
|
+
| `--xl` | Style variant |
|
|
44
|
+
|
|
45
|
+
## Examples
|
|
46
|
+
|
|
47
|
+
### All-Round Padding
|
|
48
|
+
|
|
49
|
+
All-round padding appears on all sides of the container they are applied to. Use \
|
|
50
|
+
|
|
51
|
+
```html
|
|
52
|
+
<div class="docs-column-flex docs-column-flex--align-start">
|
|
53
|
+
<div class="docs-layout-margins-paddings--color-14 fd-padding">
|
|
54
|
+
<div class="docs-layout-margins-paddings docs-layout-margins-paddings--width docs-layout-grid-bg--color-7">container</div>
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### Double-Sided Padding
|
|
60
|
+
|
|
61
|
+
Double sided paddings appear on two opposite sides of the element. Use \
|
|
62
|
+
|
|
63
|
+
```html
|
|
64
|
+
<div class="docs-column-flex docs-column-flex--align-start">
|
|
65
|
+
<div class="docs-layout-margins-paddings--color-14 fd-padding-begin-end--tiny">
|
|
66
|
+
<div class="docs-layout-margins-paddings docs-layout-margins-paddings--width docs-layout-grid-bg--color-7">container(tiny)</div>
|
|
67
|
+
</div>
|
|
68
|
+
<br />
|
|
69
|
+
<div class="docs-layout-margins-paddings--color-14 fd-padding-begin-end--sm">
|
|
70
|
+
<div class="docs-layout-margins-paddings docs-layout-margins-paddings--width-sm docs-layout-grid-bg--color-7">container(sm)</div>
|
|
71
|
+
</div>
|
|
72
|
+
<br />
|
|
73
|
+
<div class="docs-layout-margins-paddings--color-14 fd-padding-begin-end--md">
|
|
74
|
+
<div class="docs-layout-margins-paddings docs-layout-margins-paddings--width-md docs-layout-grid-bg--color-7">container(md)</div>
|
|
75
|
+
</div>
|
|
76
|
+
<br />
|
|
77
|
+
<div class="docs-layout-margins-paddings--color-14 fd-padding-begin-end--lg">
|
|
78
|
+
<div class="docs-layout-margins-paddings docs-layout-margins-paddings--width-lg docs-layout-grid-bg--color-7">container(lg)</div>
|
|
79
|
+
</div>
|
|
80
|
+
</div>
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
### NoPadding
|
|
84
|
+
|
|
85
|
+
No padding classes remove existing container paddings. Use \
|
|
86
|
+
|
|
87
|
+
```html
|
|
88
|
+
<div class="docs-column-flex docs-column-flex--align-start">
|
|
89
|
+
<div class="docs-layout-margins-paddings--color-14 docs-layout-margins-paddings--padded fd-padding--none">
|
|
90
|
+
<div class="docs-layout-margins-paddings docs-layout-margins-paddings--width docs-layout-grid-bg--color-7">container</div>
|
|
91
|
+
</div>
|
|
92
|
+
</div>
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### ResponsivePadding
|
|
96
|
+
|
|
97
|
+
The responsive padding class adds a double sided padding inside a container based on its width. Use \
|
|
98
|
+
|
|
99
|
+
```html
|
|
100
|
+
<div class="docs-column-flex docs-column-flex--align-start">
|
|
101
|
+
<div class="docs-layout-margins-paddings--color-14 fd-padding-responsive--sm">
|
|
102
|
+
<div class="docs-layout-margins-paddings docs-layout-margins-paddings--width-sm docs-layout-grid-bg--color-7">container(sm)</div>
|
|
103
|
+
</div>
|
|
104
|
+
<br />
|
|
105
|
+
<div class="docs-layout-margins-paddings--color-14 fd-padding-responsive--md">
|
|
106
|
+
<div class="docs-layout-margins-paddings docs-layout-margins-paddings--width-md docs-layout-grid-bg--color-7">container(md)</div>
|
|
107
|
+
</div>
|
|
108
|
+
<br />
|
|
109
|
+
<div class="docs-layout-margins-paddings--color-14 fd-padding-responsive--lg">
|
|
110
|
+
<div class="docs-layout-margins-paddings docs-layout-margins-paddings--width-md docs-layout-grid-bg--color-7">container(lg)</div>
|
|
111
|
+
</div>
|
|
112
|
+
<br />
|
|
113
|
+
<div class="docs-layout-margins-paddings--color-14 fd-padding-responsive--xl">
|
|
114
|
+
<div class="docs-layout-margins-paddings docs-layout-margins-paddings--width-lg docs-layout-grid-bg--color-7">container(xl)</div>
|
|
115
|
+
</div>
|
|
116
|
+
</div>
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
## Accessibility
|
|
120
|
+
|
|
121
|
+
- Use semantic HTML elements where appropriate
|
|
122
|
+
- Include proper ARIA attributes for interactive elements
|
|
123
|
+
- Ensure keyboard navigation support
|
|
124
|
+
- Provide adequate color contrast
|
|
125
|
+
|
|
126
|
+
## Source
|
|
127
|
+
|
|
128
|
+
This documentation was automatically generated from: `packages/styles/stories/Layouts/paddings/paddings.stories.js`
|
|
129
|
+
|
|
130
|
+
For the latest updates and interactive examples, see [Storybook](https://sap.github.io/fundamental-styles/).
|