@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,148 @@
|
|
|
1
|
+
---
|
|
2
|
+
component: border-radius
|
|
3
|
+
title: Border Radius
|
|
4
|
+
category: border-radius
|
|
5
|
+
selector:
|
|
6
|
+
cssFile:
|
|
7
|
+
sourcePath: packages/common-css/stories/border-radius/border-radius.stories.js
|
|
8
|
+
tags: []
|
|
9
|
+
dependencies: []
|
|
10
|
+
relatedComponents: []
|
|
11
|
+
stability: stable
|
|
12
|
+
generatedAt: 2026-06-09T18:29:01.696Z
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
# Border Radius
|
|
16
|
+
|
|
17
|
+
Provides CSS classes and SCSS mixins for controlling the corner rounding of elements. Classes apply predefined theme-based border-radius values, while the sap-border-radius mixin lets you define custom values for one or multiple corners.
|
|
18
|
+
|
|
19
|
+
<table style="width: 100%; border-collapse: collapse; margin-top: 1rem;">
|
|
20
|
+
<thead>
|
|
21
|
+
<tr>
|
|
22
|
+
<th style="padding: 0.25rem 0.75rem;">Type</th>
|
|
23
|
+
<th style="padding: 0.25rem 0.75rem;">CSS variable</th>
|
|
24
|
+
<th style="padding: 0.25rem 0.75rem;">Class</th>
|
|
25
|
+
<th style="padding: 0.25rem 0.75rem;">Mixin</th>
|
|
26
|
+
</tr>
|
|
27
|
+
</thead>
|
|
28
|
+
<tbody>
|
|
29
|
+
<tr>
|
|
30
|
+
<td style="padding: 0.25rem 0.75rem;">Element</td>
|
|
31
|
+
<td style="padding: 0.25rem 0.75rem;">var(--sapElement_BorderCornerRadius)</td>
|
|
32
|
+
<td style="padding: 0.25rem 0.75rem;">.sap-border-radius-element</td>
|
|
33
|
+
<td style="padding: 0.25rem 0.75rem;">@include sap-border-radius(element)</td>
|
|
34
|
+
</tr>
|
|
35
|
+
<tr>
|
|
36
|
+
<td style="padding: 0.25rem 0.75rem;">Button</td>
|
|
37
|
+
<td style="padding: 0.25rem 0.75rem;">var(--sapButton_BorderCornerRadius)</td>
|
|
38
|
+
<td style="padding: 0.25rem 0.75rem;">.sap-border-radius-button</td>
|
|
39
|
+
<td style="padding: 0.25rem 0.75rem;">@include sap-border-radius(button)</td>
|
|
40
|
+
</tr>
|
|
41
|
+
<tr>
|
|
42
|
+
<td style="padding: 0.25rem 0.75rem;">Field</td>
|
|
43
|
+
<td style="padding: 0.25rem 0.75rem;">var(--sapField_BorderCornerRadius)</td>
|
|
44
|
+
<td style="padding: 0.25rem 0.75rem;">.sap-border-radius-field</td>
|
|
45
|
+
<td style="padding: 0.25rem 0.75rem;">@include sap-border-radius(field)</td>
|
|
46
|
+
</tr>
|
|
47
|
+
<tr>
|
|
48
|
+
<td style="padding: 0.25rem 0.75rem;">Group</td>
|
|
49
|
+
<td style="padding: 0.25rem 0.75rem;">var(--sapGroup_BorderCornerRadius)</td>
|
|
50
|
+
<td style="padding: 0.25rem 0.75rem;">.sap-border-radius-group</td>
|
|
51
|
+
<td style="padding: 0.25rem 0.75rem;">@include sap-border-radius(group)</td>
|
|
52
|
+
</tr>
|
|
53
|
+
<tr>
|
|
54
|
+
<td style="padding: 0.25rem 0.75rem;">Popover</td>
|
|
55
|
+
<td style="padding: 0.25rem 0.75rem;">var(--sapPopover_BorderCornerRadius)</td>
|
|
56
|
+
<td style="padding: 0.25rem 0.75rem;">.sap-border-radius-popover</td>
|
|
57
|
+
<td style="padding: 0.25rem 0.75rem;">@include sap-border-radius(popover)</td>
|
|
58
|
+
</tr>
|
|
59
|
+
<tr>
|
|
60
|
+
<td style="padding: 0.25rem 0.75rem;">Tile</td>
|
|
61
|
+
<td style="padding: 0.25rem 0.75rem;">var(--sapTile_BorderCornerRadius)</td>
|
|
62
|
+
<td style="padding: 0.25rem 0.75rem;">.sap-border-radius-tile</td>
|
|
63
|
+
<td style="padding: 0.25rem 0.75rem;">@include sap-border-radius(tile)</td>
|
|
64
|
+
</tr>
|
|
65
|
+
</tbody>
|
|
66
|
+
</table>
|
|
67
|
+
<br><br>
|
|
68
|
+
<b>SCSS mixin: </b><code>@include sap-border-radius($value...)</code><br>
|
|
69
|
+
Example: <br>
|
|
70
|
+
<code>@include sap-border-radius(1rem)</code><br>
|
|
71
|
+
<code>@include sap-border-radius(1rem 0.5rem)</code><br>
|
|
72
|
+
<code>@include sap-border-radius(1rem 0.5rem 0.25rem)</code><br>
|
|
73
|
+
<code>@include sap-border-radius(1rem 0.5rem 0.25rem 0.25rem)</code><br>
|
|
74
|
+
|
|
75
|
+
## Basic Usage
|
|
76
|
+
|
|
77
|
+
```html
|
|
78
|
+
<style>
|
|
79
|
+
.demo div {
|
|
80
|
+
display: flex;
|
|
81
|
+
height: 4rem;
|
|
82
|
+
width: 8rem;
|
|
83
|
+
background: #69ADF8;
|
|
84
|
+
}
|
|
85
|
+
</style>
|
|
86
|
+
|
|
87
|
+
<div class="demo">
|
|
88
|
+
<h3>Element</h3>
|
|
89
|
+
|
|
90
|
+
<h3>Button</h3>
|
|
91
|
+
|
|
92
|
+
<h3>Field</h3>
|
|
93
|
+
|
|
94
|
+
<h3>Group</h3>
|
|
95
|
+
|
|
96
|
+
<h3>Popover</h3>
|
|
97
|
+
|
|
98
|
+
<h3>Tile</h3>
|
|
99
|
+
|
|
100
|
+
<h3>None</h3>
|
|
101
|
+
|
|
102
|
+
</div>
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
## Examples
|
|
106
|
+
|
|
107
|
+
### Border Radius Types
|
|
108
|
+
|
|
109
|
+
```html
|
|
110
|
+
<style>
|
|
111
|
+
.demo div {
|
|
112
|
+
display: flex;
|
|
113
|
+
height: 4rem;
|
|
114
|
+
width: 8rem;
|
|
115
|
+
background: #69ADF8;
|
|
116
|
+
}
|
|
117
|
+
</style>
|
|
118
|
+
|
|
119
|
+
<div class="demo">
|
|
120
|
+
<h3>Element</h3>
|
|
121
|
+
|
|
122
|
+
<h3>Button</h3>
|
|
123
|
+
|
|
124
|
+
<h3>Field</h3>
|
|
125
|
+
|
|
126
|
+
<h3>Group</h3>
|
|
127
|
+
|
|
128
|
+
<h3>Popover</h3>
|
|
129
|
+
|
|
130
|
+
<h3>Tile</h3>
|
|
131
|
+
|
|
132
|
+
<h3>None</h3>
|
|
133
|
+
|
|
134
|
+
</div>
|
|
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/common-css/stories/border-radius/border-radius.stories.js`
|
|
147
|
+
|
|
148
|
+
For the latest updates and interactive examples, see [Storybook](https://sap.github.io/fundamental-styles/).
|
|
@@ -0,0 +1,412 @@
|
|
|
1
|
+
---
|
|
2
|
+
component: border
|
|
3
|
+
title: Border
|
|
4
|
+
category: border
|
|
5
|
+
selector:
|
|
6
|
+
cssFile:
|
|
7
|
+
sourcePath: packages/common-css/stories/border/border.stories.js
|
|
8
|
+
tags: []
|
|
9
|
+
dependencies: []
|
|
10
|
+
relatedComponents: []
|
|
11
|
+
stability: stable
|
|
12
|
+
generatedAt: 2026-06-09T18:29:01.653Z
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
# Border
|
|
16
|
+
|
|
17
|
+
Border utilities provide ready-to-use classes for commonly used border parameters—style, width, and color. In addition to these predefined classes, SCSS mixins are available for applying the same styles in custom classes, allowing flexibility while ensuring design consistency.
|
|
18
|
+
<br><br><h3>Border Style Classes</h3><table>
|
|
19
|
+
<thead>
|
|
20
|
+
<tr>
|
|
21
|
+
<th>Style</th>
|
|
22
|
+
<th>CSS Class</th>
|
|
23
|
+
</tr>
|
|
24
|
+
</thead>
|
|
25
|
+
<tbody>
|
|
26
|
+
<tr>
|
|
27
|
+
<td>solid</td>
|
|
28
|
+
<td><code>.sap-border-style-solid</code></td>
|
|
29
|
+
</tr>
|
|
30
|
+
<tr>
|
|
31
|
+
<td>dashed</td>
|
|
32
|
+
<td><code>.sap-border-style-dashed</code></td>
|
|
33
|
+
</tr>
|
|
34
|
+
<tr>
|
|
35
|
+
<td>dotted</td>
|
|
36
|
+
<td><code>.sap-border-style-dotted</code></td>
|
|
37
|
+
</tr>
|
|
38
|
+
<tr>
|
|
39
|
+
<td>double</td>
|
|
40
|
+
<td><code>.sap-border-style-double</code></td>
|
|
41
|
+
</tr>
|
|
42
|
+
<tr>
|
|
43
|
+
<td>hidden</td>
|
|
44
|
+
<td><code>.sap-border-style-hidden</code></td>
|
|
45
|
+
</tr>
|
|
46
|
+
<tr>
|
|
47
|
+
<td>none</td>
|
|
48
|
+
<td><code>.sap-border-style-none</code></td>
|
|
49
|
+
</tr>
|
|
50
|
+
</tbody>
|
|
51
|
+
</table>
|
|
52
|
+
<br><h3>Border Width Classes</h3>
|
|
53
|
+
<table>
|
|
54
|
+
<thead>
|
|
55
|
+
<tr>
|
|
56
|
+
<th>Name</th>
|
|
57
|
+
<th>CSS Class</th>
|
|
58
|
+
<th>Value</th>
|
|
59
|
+
</tr>
|
|
60
|
+
</thead>
|
|
61
|
+
<tbody>
|
|
62
|
+
<tr>
|
|
63
|
+
<td>1</td>
|
|
64
|
+
<td><code>.sap-border-width-1</code></td>
|
|
65
|
+
<td>0.0625rem</td>
|
|
66
|
+
</tr>
|
|
67
|
+
<tr>
|
|
68
|
+
<td>2</td>
|
|
69
|
+
<td><code>.sap-border-width-2</code></td>
|
|
70
|
+
<td>0.125rem</td>
|
|
71
|
+
</tr>
|
|
72
|
+
<tr>
|
|
73
|
+
<td>3</td>
|
|
74
|
+
<td><code>.sap-border-width-3</code></td>
|
|
75
|
+
<td>0.1875rem</td>
|
|
76
|
+
</tr>
|
|
77
|
+
<tr>
|
|
78
|
+
<td>4</td>
|
|
79
|
+
<td><code>.sap-border-width-4</code></td>
|
|
80
|
+
<td>0.25rem</td>
|
|
81
|
+
</tr>
|
|
82
|
+
<tr>
|
|
83
|
+
<td>element</td>
|
|
84
|
+
<td><code>.sap-border-width-element</code></td>
|
|
85
|
+
<td>var(--sapElement_BorderWidth)</td>
|
|
86
|
+
</tr>
|
|
87
|
+
<tr>
|
|
88
|
+
<td>group</td>
|
|
89
|
+
<td><code>.sap-border-width-group</code></td>
|
|
90
|
+
<td>var(--sapGroup_BorderWidth)</td>
|
|
91
|
+
</tr>
|
|
92
|
+
<tr>
|
|
93
|
+
<td>content-focus</td>
|
|
94
|
+
<td><code>.sap-border-width-content-focus</code></td>
|
|
95
|
+
<td>var(--sapContent_FocusWidth)</td>
|
|
96
|
+
</tr>
|
|
97
|
+
<tr>
|
|
98
|
+
<td>list</td>
|
|
99
|
+
<td><code>.sap-border-width-list</code></td>
|
|
100
|
+
<td>var(--sapList_BorderWidth)</td>
|
|
101
|
+
</tr>
|
|
102
|
+
<tr>
|
|
103
|
+
<td>button</td>
|
|
104
|
+
<td><code>.sap-border-width-button</code></td>
|
|
105
|
+
<td>var(--sapButton_BorderWidth)</td>
|
|
106
|
+
</tr>
|
|
107
|
+
<tr>
|
|
108
|
+
<td>message</td>
|
|
109
|
+
<td><code>.sap-border-width-message</code></td>
|
|
110
|
+
<td>var(--sapMessage_BorderWidth)</td>
|
|
111
|
+
</tr>
|
|
112
|
+
<tr>
|
|
113
|
+
<td>field</td>
|
|
114
|
+
<td><code>.sap-border-width-field</code></td>
|
|
115
|
+
<td>var(--sapField_BorderWidth)</td>
|
|
116
|
+
</tr>
|
|
117
|
+
<tr>
|
|
118
|
+
<td>field-invalid</td>
|
|
119
|
+
<td><code>.sap-border-width-field-invalid</code></td>
|
|
120
|
+
<td>var(--sapField_InvalidBorderWidth)</td>
|
|
121
|
+
</tr>
|
|
122
|
+
<tr>
|
|
123
|
+
<td>field-warning</td>
|
|
124
|
+
<td><code>.sap-border-width-field-warning</code></td>
|
|
125
|
+
<td>var(--sapField_WarningBorderWidth)</td>
|
|
126
|
+
</tr>
|
|
127
|
+
<tr>
|
|
128
|
+
<td>field-success</td>
|
|
129
|
+
<td><code>.sap-border-width-field-success</code></td>
|
|
130
|
+
<td>var(--sapField_SuccessBorderWidth)</td>
|
|
131
|
+
</tr>
|
|
132
|
+
<tr>
|
|
133
|
+
<td>field-information</td>
|
|
134
|
+
<td><code>.sap-border-width-field-information</code></td>
|
|
135
|
+
<td>var(--sapField_InformationBorderWidth)</td>
|
|
136
|
+
</tr>
|
|
137
|
+
</tbody>
|
|
138
|
+
</table>
|
|
139
|
+
<br><h3>Border Color Classes</h3>
|
|
140
|
+
<table>
|
|
141
|
+
<thead>
|
|
142
|
+
<tr>
|
|
143
|
+
<th>Name</th>
|
|
144
|
+
<th>CSS Class</th>
|
|
145
|
+
<th>Value</th>
|
|
146
|
+
</tr>
|
|
147
|
+
</thead>
|
|
148
|
+
<tbody>
|
|
149
|
+
<tr><td>error</td><td><code>.sap-border-color-error</code></td><td>var(--sapErrorBorderColor)</td></tr>
|
|
150
|
+
<tr><td>warning</td><td><code>.sap-border-color-warning</code></td><td>var(--sapWarningBorderColor)</td></tr>
|
|
151
|
+
<tr><td>success</td><td><code>.sap-border-color-success</code></td><td>var(--sapSuccessBorderColor)</td></tr>
|
|
152
|
+
<tr><td>information</td><td><code>.sap-border-color-information</code></td><td>var(--sapInformationBorderColor)</td></tr>
|
|
153
|
+
<tr><td>neutral</td><td><code>.sap-border-color-neutral</code></td><td>var(--sapNeutralBorderColor)</td></tr>
|
|
154
|
+
<tr><td>content-badge</td><td><code>.sap-border-color-content-badge</code></td><td>var(--sapContent_BadgeBorderColor)</td></tr>
|
|
155
|
+
<tr><td>content-foreground</td><td><code>.sap-border-color-content-foreground</code></td><td>var(--sapContent_ForegroundBorderColor)</td></tr>
|
|
156
|
+
<tr><td>shell</td><td><code>.sap-border-color-shell</code></td><td>var(--sapShell_BorderColor)</td></tr>
|
|
157
|
+
<tr><td>shell-interactive</td><td><code>.sap-border-color-shell-interactive</code></td><td>var(--sapShell_InteractiveBorderColor)</td></tr>
|
|
158
|
+
<tr><td>assistant</td><td><code>.sap-border-color-assistant</code></td><td>var(--sapAssistant_BorderColor)</td></tr>
|
|
159
|
+
<tr><td>button</td><td><code>.sap-border-color-button</code></td><td>var(--sapButton_BorderColor)</td></tr>
|
|
160
|
+
<tr><td>field</td><td><code>.sap-border-color-field</code></td><td>var(--sapField_BorderColor)</td></tr>
|
|
161
|
+
<tr><td>list</td><td><code>.sap-border-color-list</code></td><td>var(--sapList_BorderColor)</td></tr>
|
|
162
|
+
<tr><td>tile</td><td><code>.sap-border-color-tile</code></td><td>var(--sapTile_BorderColor)</td></tr>
|
|
163
|
+
<tr><td>message-error</td><td><code>.sap-border-color-message-error</code></td><td>var(--sapMessage_ErrorBorderColor)</td></tr>
|
|
164
|
+
<tr><td>message-warning</td><td><code>.sap-border-color-message-warning</code></td><td>var(--sapMessage_WarningBorderColor)</td></tr>
|
|
165
|
+
<tr><td>message-success</td><td><code>.sap-border-color-message-success</code></td><td>var(--sapMessage_SuccessBorderColor)</td></tr>
|
|
166
|
+
<tr><td>message-information</td><td><code>.sap-border-color-message-information</code></td><td>var(--sapMessage_InformationBorderColor)</td></tr>
|
|
167
|
+
</tbody>
|
|
168
|
+
</table>
|
|
169
|
+
<br><br>
|
|
170
|
+
|
|
171
|
+
<p>
|
|
172
|
+
The classes listed above apply borders on <strong>all four sides</strong> of an element.
|
|
173
|
+
Similar variations are available for applying borders to specific directions:
|
|
174
|
+
</p>
|
|
175
|
+
|
|
176
|
+
<ul>
|
|
177
|
+
<li>
|
|
178
|
+
**Inline**: applies border along the inline (text) direction
|
|
179
|
+
(left/right in LTR, right/left in RTL)
|
|
180
|
+
<ul>
|
|
181
|
+
<li><code>sap-border-inline-style-*</code></li>
|
|
182
|
+
<li><code>sap-border-inline-width-*</code></li>
|
|
183
|
+
<li><code>sap-border-inline-color-*</code></li>
|
|
184
|
+
</ul>
|
|
185
|
+
</li>
|
|
186
|
+
|
|
187
|
+
<li>
|
|
188
|
+
**Block**: applies border along the block (vertical) direction (top/bottom)
|
|
189
|
+
<ul>
|
|
190
|
+
<li><code>sap-border-block-style-*</code></li>
|
|
191
|
+
<li><code>sap-border-block-width-*</code></li>
|
|
192
|
+
<li><code>sap-border-block-color-*</code></li>
|
|
193
|
+
</ul>
|
|
194
|
+
</li>
|
|
195
|
+
|
|
196
|
+
<li>
|
|
197
|
+
**Block Start**: applies border to the start edge of the block direction
|
|
198
|
+
(top in horizontal writing modes)
|
|
199
|
+
<ul>
|
|
200
|
+
<li><code>sap-border-block-start-style-*</code></li>
|
|
201
|
+
<li><code>sap-border-block-start-width-*</code></li>
|
|
202
|
+
<li><code>sap-border-block-start-color-*</code></li>
|
|
203
|
+
</ul>
|
|
204
|
+
</li>
|
|
205
|
+
|
|
206
|
+
<li>
|
|
207
|
+
**Block End**: applies border to the end edge of the block direction
|
|
208
|
+
(bottom in horizontal writing modes)
|
|
209
|
+
<ul>
|
|
210
|
+
<li><code>sap-border-block-end-style-*</code></li>
|
|
211
|
+
<li><code>sap-border-block-end-width-*</code></li>
|
|
212
|
+
<li><code>sap-border-block-end-color-*</code></li>
|
|
213
|
+
</ul>
|
|
214
|
+
</li>
|
|
215
|
+
|
|
216
|
+
<li>
|
|
217
|
+
**Inline Start**: applies border to the start edge of the inline direction
|
|
218
|
+
(left in LTR, right in RTL)
|
|
219
|
+
<ul>
|
|
220
|
+
<li><code>sap-border-inline-start-style-*</code></li>
|
|
221
|
+
<li><code>sap-border-inline-start-width-*</code></li>
|
|
222
|
+
<li><code>sap-border-inline-start-color-*</code></li>
|
|
223
|
+
</ul>
|
|
224
|
+
</li>
|
|
225
|
+
|
|
226
|
+
<li>
|
|
227
|
+
**Inline End**: applies border to the end edge of the inline direction
|
|
228
|
+
(right in LTR, left in RTL)
|
|
229
|
+
<ul>
|
|
230
|
+
<li><code>sap-border-inline-end-style-*</code></li>
|
|
231
|
+
<li><code>sap-border-inline-end-width-*</code></li>
|
|
232
|
+
<li><code>sap-border-inline-end-color-*</code></li>
|
|
233
|
+
</ul>
|
|
234
|
+
</li>
|
|
235
|
+
</ul>
|
|
236
|
+
|
|
237
|
+
## Basic Usage
|
|
238
|
+
|
|
239
|
+
```html
|
|
240
|
+
<style>
|
|
241
|
+
.demo {
|
|
242
|
+
gap: 2rem;
|
|
243
|
+
display: flex;
|
|
244
|
+
flex-wrap: wrap;
|
|
245
|
+
align-items: center;
|
|
246
|
+
}
|
|
247
|
+
.demo div {
|
|
248
|
+
display: flex;
|
|
249
|
+
height: 4rem;
|
|
250
|
+
width: 8rem;
|
|
251
|
+
background: #fff;
|
|
252
|
+
}
|
|
253
|
+
</style>
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
## Examples
|
|
257
|
+
|
|
258
|
+
### Border
|
|
259
|
+
|
|
260
|
+
```html
|
|
261
|
+
<style>
|
|
262
|
+
.demo {
|
|
263
|
+
gap: 2rem;
|
|
264
|
+
display: flex;
|
|
265
|
+
flex-wrap: wrap;
|
|
266
|
+
align-items: center;
|
|
267
|
+
}
|
|
268
|
+
.demo div {
|
|
269
|
+
display: flex;
|
|
270
|
+
height: 4rem;
|
|
271
|
+
width: 8rem;
|
|
272
|
+
background: #fff;
|
|
273
|
+
}
|
|
274
|
+
</style>
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
### SCSS mixin sap-border
|
|
278
|
+
|
|
279
|
+
<p>
|
|
280
|
+
The <code>sap-border</code> helper mixin allows you to specify the width, style, and color of an element's border.
|
|
281
|
+
This is achieved by providing values to the <code>sap-border</code> parameters:
|
|
282
|
+
<code>$width</code>, <code>$style</code>, <code>$color</code>, and <code>$pos</code>.
|
|
283
|
+
</p>
|
|
284
|
+
|
|
285
|
+
<p>
|
|
286
|
+
The <code>$pos</code> parameter defines where the border will be applied and can be one of the following:
|
|
287
|
+
</p>
|
|
288
|
+
|
|
289
|
+
<ul>
|
|
290
|
+
<li>**all**: applies borders to all sides (default).</li>
|
|
291
|
+
<li>**top**: applies the border to the top side (<code>border-block-start</code>).</li>
|
|
292
|
+
<li>**bottom**: applies the border to the bottom side (<code>border-block-end</code>).</li>
|
|
293
|
+
<li>**left**: applies the border to the left side (<code>border-inline-start</code>).</li>
|
|
294
|
+
<li>**right**: applies the border to the right side (<code>border-inline-end</code>).</li>
|
|
295
|
+
<li>**x**: applies the border to left and right sides (<code>border-inline</code>).</li>
|
|
296
|
+
<li>**y**: applies the border to top and bottom sides (<code>border-block</code>).</li>
|
|
297
|
+
<li>**inline**: applies the border to both inline sides (<code>border-inline</code>).</li>
|
|
298
|
+
<li>**block**: applies the border to both block sides (<code>border-block</code>).</li>
|
|
299
|
+
<li>**inline-start**: applies the border to the start of the inline axis (<code>border-inline-start</code>).</li>
|
|
300
|
+
<li>**inline-end**: applies the border to the end of the inline axis (<code>border-inline-end</code>).</li>
|
|
301
|
+
<li>**block-start**: applies the border to the start of the block axis (<code>border-block-start</code>).</li>
|
|
302
|
+
<li>**block-end**: applies the border to the end of the block axis (<code>border-block-end</code>).</li>
|
|
303
|
+
</ul>
|
|
304
|
+
|
|
305
|
+
```html
|
|
306
|
+
<style>
|
|
307
|
+
.border-example-card {
|
|
308
|
+
background: #f7f8fa;
|
|
309
|
+
border: 0.0625rem solid #eaecee;
|
|
310
|
+
border-radius: 0.5rem;
|
|
311
|
+
padding: 1rem;
|
|
312
|
+
margin-block-end: 1rem;
|
|
313
|
+
}
|
|
314
|
+
.border-example-card h4 {
|
|
315
|
+
margin: 0 0 0.75rem 0;
|
|
316
|
+
color: #0a6ed1;
|
|
317
|
+
font-size: 0.9375rem;
|
|
318
|
+
font-weight: 600;
|
|
319
|
+
}
|
|
320
|
+
.border-example-card pre {
|
|
321
|
+
background: #fff;
|
|
322
|
+
border: 0.0625rem solid #e4e4e4;
|
|
323
|
+
border-radius: 0.25rem;
|
|
324
|
+
padding: 0.75rem 1rem;
|
|
325
|
+
margin: 0.5rem 0;
|
|
326
|
+
font-size: 0.875rem;
|
|
327
|
+
font-family: 'Courier New', Courier, monospace;
|
|
328
|
+
color: #32363a;
|
|
329
|
+
overflow-x: auto;
|
|
330
|
+
line-height: 1.5;
|
|
331
|
+
display: inline-block;
|
|
332
|
+
}
|
|
333
|
+
.border-example-card .alternatives {
|
|
334
|
+
display: flex;
|
|
335
|
+
gap: 0.5rem;
|
|
336
|
+
align-items: center;
|
|
337
|
+
flex-wrap: wrap;
|
|
338
|
+
}
|
|
339
|
+
.border-example-card .alternatives::before {
|
|
340
|
+
content: 'or';
|
|
341
|
+
color: #6a6d70;
|
|
342
|
+
font-size: 0.875rem;
|
|
343
|
+
font-style: italic;
|
|
344
|
+
}
|
|
345
|
+
</style>
|
|
346
|
+
|
|
347
|
+
<div class="border-example-card">
|
|
348
|
+
<h4>All Sides</h4>
|
|
349
|
+
<pre>@include sap-border(0.125rem, solid, #000);</pre>
|
|
350
|
+
</div>
|
|
351
|
+
|
|
352
|
+
<div class="border-example-card">
|
|
353
|
+
<h4>Border Top</h4>
|
|
354
|
+
<pre>@include sap-border(0.125rem, solid, #000, top);</pre>
|
|
355
|
+
<div class="alternatives">
|
|
356
|
+
<pre>@include sap-border(0.125rem, solid, #000, block-start);</pre>
|
|
357
|
+
</div>
|
|
358
|
+
</div>
|
|
359
|
+
|
|
360
|
+
<div class="border-example-card">
|
|
361
|
+
<h4>Border Bottom</h4>
|
|
362
|
+
<pre>@include sap-border(0.125rem, solid, #000, bottom);</pre>
|
|
363
|
+
<div class="alternatives">
|
|
364
|
+
<pre>@include sap-border(0.125rem, solid, #000, block-end);</pre>
|
|
365
|
+
</div>
|
|
366
|
+
</div>
|
|
367
|
+
|
|
368
|
+
<div class="border-example-card">
|
|
369
|
+
<h4>Border Left</h4>
|
|
370
|
+
<pre>@include sap-border(0.125rem, solid, #000, left);</pre>
|
|
371
|
+
<div class="alternatives">
|
|
372
|
+
<pre>@include sap-border(0.125rem, solid, #000, inline-start);</pre>
|
|
373
|
+
</div>
|
|
374
|
+
</div>
|
|
375
|
+
|
|
376
|
+
<div class="border-example-card">
|
|
377
|
+
<h4>Border Right</h4>
|
|
378
|
+
<pre>@include sap-border(0.125rem, solid, #000, right);</pre>
|
|
379
|
+
<div class="alternatives">
|
|
380
|
+
<pre>@include sap-border(0.125rem, solid, #000, inline-end);</pre>
|
|
381
|
+
</div>
|
|
382
|
+
</div>
|
|
383
|
+
|
|
384
|
+
<div class="border-example-card">
|
|
385
|
+
<h4>Border Top and Bottom (Y-axis)</h4>
|
|
386
|
+
<pre>@include sap-border(0.125rem, solid, #000, y);</pre>
|
|
387
|
+
<div class="alternatives">
|
|
388
|
+
<pre>@include sap-border(0.125rem, solid, #000, block);</pre>
|
|
389
|
+
</div>
|
|
390
|
+
</div>
|
|
391
|
+
|
|
392
|
+
<div class="border-example-card">
|
|
393
|
+
<h4>Border Left and Right (X-axis)</h4>
|
|
394
|
+
<pre>@include sap-border(0.125rem, solid, #000, x);</pre>
|
|
395
|
+
<div class="alternatives">
|
|
396
|
+
<pre>@include sap-border(0.125rem, solid, #000, inline);</pre>
|
|
397
|
+
</div>
|
|
398
|
+
</div>
|
|
399
|
+
```
|
|
400
|
+
|
|
401
|
+
## Accessibility
|
|
402
|
+
|
|
403
|
+
- Use semantic HTML elements where appropriate
|
|
404
|
+
- Include proper ARIA attributes for interactive elements
|
|
405
|
+
- Ensure keyboard navigation support
|
|
406
|
+
- Provide adequate color contrast
|
|
407
|
+
|
|
408
|
+
## Source
|
|
409
|
+
|
|
410
|
+
This documentation was automatically generated from: `packages/common-css/stories/border/border.stories.js`
|
|
411
|
+
|
|
412
|
+
For the latest updates and interactive examples, see [Storybook](https://sap.github.io/fundamental-styles/).
|