Skip to content

Commit efd0cd0

Browse files
committed
fix(styles): update the theme-sets
1 parent 2541878 commit efd0cd0

File tree

3 files changed

+13
-30
lines changed

3 files changed

+13
-30
lines changed

.ci-env/flags.sh

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
# This flag indicates if the tag should be treated as a latest one, which is going to trigger
3+
# - npm publish with `latest` tag, which will become new default version
4+
# - main version incrementation
5+
echo "isLatest=false" >> $GITHUB_OUTPUT
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
11
@use "sass:map";
22

3-
@container style(--sapSapThemeId: sap_fiori_3) {
4-
@import './sap_fiori_3';
5-
}
6-
7-
@container style(--sapSapThemeId: sap_fiori_3_dark) {
8-
@import './sap_fiori_3_dark';
9-
}
10-
11-
@container style(--sapSapThemeId: sap_fiori_3_hcb) {
12-
@import './sap_fiori_3_hcb';
13-
}
14-
15-
@container style(--sapSapThemeId: sap_fiori_3_hcw) {
16-
@import './sap_fiori_3_hcw';
17-
}
3+
@import "sap_fiori_3" only screen and (prefers-color-scheme: light) and (prefers-contrast: no-preference), screen and (prefers-color-scheme: light) and (prefers-contrast: less);
4+
@import "sap_fiori_3_dark" only screen and (prefers-color-scheme: dark) and (prefers-contrast: no-preference), screen and (prefers-color-scheme: dark) and (prefers-contrast: less);
5+
@import "sap_fiori_3_hcw" only screen and (prefers-color-scheme: light) and (prefers-contrast: custom), screen and (prefers-color-scheme: light) and (prefers-contrast: more);
6+
@import "sap_fiori_3_hcb" only screen and (prefers-color-scheme: dark) and (prefers-contrast: custom), screen and (prefers-color-scheme: dark) and (prefers-contrast: more);
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
11
@use "sass:map";
22

3-
@container style(--sapSapThemeId: sap_horizon) {
4-
@import 'sap_horizon';
5-
}
6-
7-
@container style(--sapSapThemeId: sap_horizon_dark) {
8-
@import 'sap_horizon_dark';
9-
}
10-
11-
@container style(--sapSapThemeId: sap_horizon_hcb) {
12-
@import 'sap_horizon_hcb';
13-
}
14-
15-
@container style(--sapSapThemeId: sap_horizon_hcw) {
16-
@import 'sap_horizon_hcw';
17-
}
3+
@import "sap_horizon" only screen and (prefers-color-scheme: light) and (prefers-contrast: no-preference), screen and (prefers-color-scheme: light) and (prefers-contrast: less);
4+
@import "sap_horizon_dark" only screen and (prefers-color-scheme: dark) and (prefers-contrast: no-preference), screen and (prefers-color-scheme: dark) and (prefers-contrast: less);
5+
@import "sap_horizon_hcw" only screen and (prefers-color-scheme: light) and (prefers-contrast: custom), screen and (prefers-color-scheme: light) and (prefers-contrast: more);
6+
@import "sap_horizon_hcb" only screen and (prefers-color-scheme: dark) and (prefers-contrast: custom), screen and (prefers-color-scheme: dark) and (prefers-contrast: more);

0 commit comments

Comments
 (0)