Skip to content

Commit 3674dbc

Browse files
authored
fix(theme-base): correct inavlid CSS vars (#2427)
1 parent eb5e4d1 commit 3674dbc

14 files changed

+13
-23
lines changed

packages/fiori/src/themes/ProductSwitchItem.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
}
8080

8181
.ui5-product-switch-item-root .ui5-product-switch-item-text-content .ui5-product-switch-item-heading {
82-
font-size:var( --sapMFontHeader6Size);
82+
font-size:var( --sapFontHeader6Size);
8383
color:var(--sapGroup_TitleTextColor);
8484
}
8585

packages/fiori/src/themes/UploadCollection.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111

112112
.uc-dnd-overlay .dnd-overlay-text {
113113
font-family: "72override", var(--sapFontFamily);
114-
font-size: var(--sapMFontHeader4Size);
114+
font-size: var(--sapFontHeader4Size);
115115
color: var(--sapContent_NonInteractiveIconColor);
116116
}
117117

packages/main/src/themes/Card.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107

108108
.ui5-card-header .ui5-card-header-text .ui5-card-heading {
109109
font-family: "72override", var(--sapFontFamily);
110-
font-size: var(--sapMFontHeader5Size);
110+
font-size: var(--sapFontHeader5Size);
111111
font-weight: normal;
112112
color: var(--sapTile_TitleTextColor);
113113
max-height: 3.5rem;

packages/main/src/themes/GroupHeaderListItem.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
.ui5-li-root.ui5-ghli-root {
1010
padding-top: 1rem;
1111
color: currentColor;
12-
font-size: var(--sapMFontHeader6Size);
12+
font-size: var(--sapFontHeader6Size);
1313
font-weight: normal;
1414
line-height: 2rem;
1515
}

packages/main/src/themes/List.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
white-space: nowrap;
4040
text-overflow: ellipsis;
4141
box-sizing: border-box;
42-
font-size: var(--sapMFontHeader4Size);
42+
font-size: var(--sapFontHeader4Size);
4343
font-family: "72override", var(--sapFontFamily);
4444
color: var(--sapGroup_TitleTextColor);
4545
height: 3rem;

packages/main/src/themes/ResponsivePopoverCommon.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@
4848

4949
[inner-input]::selection,
5050
[inner-input]::-moz-selection {
51-
background: var(--sapSelected);
52-
color: var(--sapContent_contrastTextColor);
51+
background: var(--sapSelectedColor);
52+
color: var(--sapContent_ContrastTextColor);
5353
}
5454

5555
/* Input placeholder */

packages/main/src/themes/Select.css

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
outline: none;
99
cursor: pointer;
1010
overflow: hidden;
11-
box-shadow: var(--sapUiContentShadow1);
1211
}
1312

1413
.ui5-select-label-root {

packages/main/src/themes/TextArea.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142

143143
:host([value-state]:not([value-state="None"])) .ui5-textarea-inner,
144144
:host([exceeding]) .ui5-textarea-inner {
145-
border-width: var(--_ui5_textarea_error_warning_border_width);
145+
border-width: var(--_ui5_textarea_state_border_width);
146146
}
147147

148148
:host([value-state="Error"]) .ui5-textarea-inner,
@@ -193,7 +193,7 @@
193193

194194
:host([value-state="Information"]:not([readonly]):not([exceeding])) .ui5-textarea-inner {
195195
background-color: var(--sapField_InformationBackground);
196-
border-width: var(--_ui5_textarea_information_border_width);
196+
border-width: var(--_ui5_textarea_state_border_width);
197197
}
198198

199199
.ui5-textarea-exceeded-text {

packages/main/src/themes/ValueStateMessage.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
.ui5-valuestatemessage-root {
77
box-sizing: border-box;
88
display: inline-block;
9-
color: var(--sapUiBaseColor);
9+
color: var(--sapTextColor);
1010
font-size: var(--sapFontSmallSize);
1111
font-family: "72override", var(--sapFontFamily);
1212
padding: .3rem .625rem;
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
:root {
22
--_ui5_textarea_focus_after_width: 1px;
33
--_ui5_textarea_warning_border_style: solid;
4-
--_ui5_textarea_warning_border_width: 2px;
4+
--_ui5_textarea_state_border_width: 0.125rem;
55
}

packages/main/src/themes/base/sizes-parameters.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
--_ui5_input_value_state_icon_padding: var(--_ui5-input-icon-padding);
2626
--_ui5_list_no_data_height: 3rem;
2727
--_ui5_list_item_cb_margin_right: 0;
28-
--_ui5_list_item_title_size: var(--sapMFontLargeSize);
28+
--_ui5_list_item_title_size: var(--sapFontLargeSize);
2929
--_ui5_list_item_img_size: 3rem;
3030
--_ui5_list_item_img_margin: 0.5rem 0.75rem 0.5rem 0rem;
3131
--_ui5_list_item_base_height: 2.75rem;

packages/main/src/themes/sap_belize_hcb/TextArea-parameters.css

-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@
33
:root {
44
--_ui5_textarea_focus_after_width: 2px;
55
--_ui5_textarea_warning_border_style: dashed;
6-
--_ui5_textarea_warning_border_width: 1px;
76
}

packages/main/src/themes/sap_belize_hcw/TextArea-parameters.css

-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@
33
:root {
44
--_ui5_textarea_focus_after_width: 2px;
55
--_ui5_textarea_warning_border_style: dashed;
6-
--_ui5_textarea_warning_border_width: 1px;
76
}

packages/theme-base/css-vars-usage.json

+1-8
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@
6161
"--sapContent_BadgeBackground",
6262
"--sapContent_ContrastFocusColor",
6363
"--sapContent_ContrastTextColor",
64-
"--sapContent_contrastTextColor",
6564
"--sapContent_DisabledOpacity",
6665
"--sapContent_DisabledTextColor",
6766
"--sapContent_DragAndDropActiveColor",
@@ -107,6 +106,7 @@
107106
"--sapField_WarningBackground",
108107
"--sapField_WarningColor",
109108
"--sapFontFamily",
109+
"--sapFontHeader4Size",
110110
"--sapFontHeader5Size",
111111
"--sapFontHeader6Size",
112112
"--sapFontHeaderFamily",
@@ -168,10 +168,6 @@
168168
"--sapList_SelectionBorderColor",
169169
"--sapList_TableGroupHeaderBorderColor",
170170
"--sapList_TableGroupHeaderTextColor",
171-
"--sapMFontHeader4Size",
172-
"--sapMFontHeader5Size",
173-
"--sapMFontHeader6Size",
174-
"--sapMFontLargeSize",
175171
"--sapNegativeColor",
176172
"--sapNegativeElementColor",
177173
"--sapNegativeTextColor",
@@ -188,7 +184,6 @@
188184
"--sapPositiveColor",
189185
"--sapPositiveElementColor",
190186
"--sapPositiveTextColor",
191-
"--sapSelected",
192187
"--sapSelectedColor",
193188
"--sapShell_Active_Background",
194189
"--sapShell_Active_TextColor",
@@ -207,8 +202,6 @@
207202
"--sapTile_SeparatorColor",
208203
"--sapTile_TextColor",
209204
"--sapTile_TitleTextColor",
210-
"--sapUiBaseColor",
211-
"--sapUiContentShadow1",
212205
"--sapWarningBackground",
213206
"--sapWarningBorderColor"
214207
]

0 commit comments

Comments
 (0)