@@ -52,6 +52,90 @@ To opt-out of this behavior, you can add the `.ui5-content-native-scrollbars` cl
52
52
53
53
More details can be found in our [ Styling Knowledge Base] ( ?path=/docs/knowledge-base-styling--docs#scrollbars ) .
54
54
55
+ ## Spacing
56
+
57
+ The ` spacing ` variables of our base package (` @ui5/webcomponents-react-base ` ) have been removed.
58
+ Most variables can be replaced by applying the corresponding CSS classes from the ` @sap-ui/common-css ` package to your element, for all others you can find the respective CSS properties and values below.
59
+
60
+ ** Full Documentation of Common CSS classes:**
61
+
62
+ - [ Margins] ( https://sap.github.io/fundamental-styles/?path=/docs/common-css-margins--docs )
63
+ - [ Paddings] ( https://sap.github.io/fundamental-styles/?path=/docs/common-css-padding--docs )
64
+
65
+ ### Common CSS substitute classes
66
+
67
+ <details >
68
+ <summary >Show</summary >
69
+
70
+ | Removed Variable | Equivalent Common CSS Class |
71
+ | ----------------------------------- | ----------------------------- |
72
+ | ** All Around Margins** | |
73
+ | ` sapUiTinyMargin ` | ` .sap-margin-tiny ` |
74
+ | ` sapUiSmallMargin ` | ` .sap-margin-small ` |
75
+ | ` sapUiMediumMargin ` | ` .sap-margin-medium ` |
76
+ | ` sapUiLargeMargin ` | ` .sap-margin-large ` |
77
+ | ** Single Side Margins** | |
78
+ | ` sapUiTinyMarginTop ` | ` .sap-margin-top-tiny ` |
79
+ | ` sapUiSmallMarginTop ` | ` .sap-margin-top-small ` |
80
+ | ` sapUiMediumMarginTop ` | ` .sap-margin-top-medium ` |
81
+ | ` sapUiLargeMarginTop ` | ` .sap-margin-top-large ` |
82
+ | ` sapUiTinyMarginBottom ` | ` .sap-margin-bottom-tiny ` |
83
+ | ` sapUiSmallMarginBottom ` | ` .sap-margin-bottom-small ` |
84
+ | ` sapUiMediumMarginBottom ` | ` .sap-margin-bottom-medium ` |
85
+ | ` sapUiLargeMarginBottom ` | ` .sap-margin-bottom-large ` |
86
+ | ` sapUiTinyMarginBegin ` | ` .sap-margin-begin-tiny ` |
87
+ | ` sapUiSmallMarginBegin ` | ` .sap-margin-begin-small ` |
88
+ | ` sapUiMediumMarginBegin ` | ` .sap-margin-begin-medium ` |
89
+ | ` sapUiLargeMarginBegin ` | ` .sap-margin-begin-large ` |
90
+ | ` sapUiTinyMarginEnd ` | ` .sap-margin-end-tiny ` |
91
+ | ` sapUiSmallMarginEnd ` | ` .sap-margin-end-small ` |
92
+ | ` sapUiMediumMarginEnd ` | ` .sap-margin-end-medium ` |
93
+ | ` sapUiLargeMarginEnd ` | ` .sap-margin-end-large ` |
94
+ | ** Horizontal Margins** | |
95
+ | ` sapUiTinyMarginBeginEnd ` | ` .sap-margin-x-tiny ` |
96
+ | ` sapUiSmallMarginBeginEnd ` | ` .sap-margin-x-small ` |
97
+ | ` sapUiMediumMarginBeginEnd ` | ` .sap-margin-x-medium ` |
98
+ | ` sapUiLargeMarginBeginEnd ` | ` .sap-margin-x-large ` |
99
+ | ** Vertical Margins** | |
100
+ | ` sapUiTinyMarginTopBottom ` | ` .sap-margin-y-tiny ` |
101
+ | ` sapUiSmallMarginBeginEnd ` | ` .sap-margin-y-small ` |
102
+ | ` sapUiMediumMarginTopBottom ` | ` .sap-margin-y-medium ` |
103
+ | ` sapUiLargeMarginTopBottom ` | ` .sap-margin-y-large ` |
104
+ | ** Responsive Margins** | |
105
+ | ` sapUiResponsiveMargin ` | ` .sap-margin-responsive ` |
106
+ | ** Negative Margins** | |
107
+ | ` sapUiTinyNegativeMarginBeginEnd ` | ` .sap-margin-tiny-negative ` |
108
+ | ` sapUiSmallNegativeMarginBeginEnd ` | ` .sap-margin-small-negative ` |
109
+ | ` sapUiMediumNegativeMarginBeginEnd ` | ` .sap-margin-medium-negative ` |
110
+ | ` sapUiLargeNegativeMarginBeginEnd ` | ` .sap-margin-large-negative ` |
111
+ | ** All Around Padding** | |
112
+ | ` sapUiContentPadding ` | ` .sap-padding ` |
113
+ | ** Responsive Paddings** | |
114
+ | ` sapUiResponsiveContentPadding ` | ` .sap-padding-responsive ` |
115
+ | ** Horizontal Paddings** | |
116
+ | ` sapUiTinyPaddingBeginEnd ` | ` .sap-padding-x-tiny ` |
117
+ | ` sapUiSmallPaddingBeginEnd ` | ` .sap-padding-x-small ` |
118
+ | ` sapUiMediumPaddingBeginEnd ` | ` .sap-padding-x-medium ` |
119
+ | ` sapUiLargePaddingBeginEnd ` | ` .sap-padding-x-large ` |
120
+ | ** No Padding** | |
121
+ | ` sapUiNoContentPadding ` | ` .sap-padding-none ` |
122
+
123
+ </details >
124
+
125
+ ### Removed variables without substitute
126
+
127
+ <details >
128
+ <summary >Show</summary >
129
+
130
+ | Removed Variable | Property and Value |
131
+ | --------------------- | ------------------------------ |
132
+ | ` sapUiNoMargin ` | ` margin: 0 !important; ` |
133
+ | ` sapUiNoMarginTop ` | ` margin-top: 0 !important; ` |
134
+ | ` sapUiNoMarginBottom ` | ` margin-bottom: 0 !important; ` |
135
+ | ` sapUiForceWidthAuto ` | ` width: auto !important; ` |
136
+
137
+ </details >
138
+
55
139
## Removed hooks
56
140
57
141
### ` useResponsiveContentPadding `
0 commit comments