@swisspost/design-system-styles 6.6.1 → 6.6.3
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/_svg-icon-map.scss +2 -0
- package/basics.css +1 -1
- package/components/floating-label.scss +6 -0
- package/components/form-check.scss +29 -0
- package/components/form-select.scss +6 -1
- package/components/spinner.scss +134 -29
- package/components/type.scss +2 -0
- package/functions/_contrast.scss +1 -1
- package/index.css +3 -3
- package/intranet.css +3 -3
- package/layouts/portal/_type.scss +5 -0
- package/mixins/_badge.scss +9 -0
- package/mixins/_icons.scss +2 -0
- package/mixins/_notification.scss +1 -2
- package/package.json +3 -4
- package/placeholders/_close.scss +4 -0
- package/variables/_breakpoints.scss +1 -1
- package/variables/_heading.scss +1 -2
- package/variables/components/_form-select.scss +2 -1
- package/variables/components/_form-validation.scss +3 -3
- package/variables/components/_forms.scss +1 -1
- package/variables/components/_notification.scss +1 -1
- package/variables/components/_spinners.scss +21 -4
package/mixins/_badge.scss
CHANGED
|
@@ -7,7 +7,10 @@
|
|
|
7
7
|
border-color: transparent;
|
|
8
8
|
|
|
9
9
|
@include utilities.high-contrast-mode() {
|
|
10
|
+
background-color: Highlight;
|
|
10
11
|
border-color: Highlight;
|
|
12
|
+
color: HighlightText;
|
|
13
|
+
forced-color-adjust: none; // Disable "readability backplate" on blink browser that interferes with the colors on this case
|
|
11
14
|
}
|
|
12
15
|
}
|
|
13
16
|
|
|
@@ -19,4 +22,10 @@
|
|
|
19
22
|
> .badge {
|
|
20
23
|
background-color: badge.$badge-nested-active-bg-color;
|
|
21
24
|
}
|
|
25
|
+
|
|
26
|
+
@include utilities.high-contrast-mode() {
|
|
27
|
+
background-color: SelectedItem;
|
|
28
|
+
color: SelectedItemText;
|
|
29
|
+
forced-color-adjust: none; // Disable "readability backplate" on blink browser that interferes with the colors on this case
|
|
30
|
+
}
|
|
22
31
|
}
|
package/mixins/_icons.scss
CHANGED
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
-webkit-mask-image: url('#{icon-fn.get-svg-url($name)}');
|
|
12
12
|
mask-image: url('#{icon-fn.get-svg-url($name)}');
|
|
13
13
|
background-color: currentColor;
|
|
14
|
+
color: currentColor; // Required in this case with usage of forced-color-adjust: preserve-parent-color
|
|
15
|
+
forced-color-adjust: preserve-parent-color;
|
|
14
16
|
}
|
|
15
17
|
|
|
16
18
|
@mixin remove-icon() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swisspost/design-system-styles",
|
|
3
|
-
"version": "6.6.
|
|
3
|
+
"version": "6.6.3",
|
|
4
4
|
"description": "Design System Styles for the Swiss Post web platform.",
|
|
5
5
|
"author": "Swiss Post <oss@post.ch>",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,17 +33,16 @@
|
|
|
33
33
|
"bootstrap": "5.3.2"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@swisspost/design-system-icons": "1.
|
|
36
|
+
"@swisspost/design-system-icons": "1.3.0",
|
|
37
37
|
"@types/node": "18.19.14",
|
|
38
38
|
"autoprefixer": "10.4.17",
|
|
39
39
|
"copyfiles": "2.4.1",
|
|
40
40
|
"glob": "10.3.10",
|
|
41
41
|
"gulp": "4.0.2",
|
|
42
42
|
"gulp-newer": "^1.4.0",
|
|
43
|
-
"gulp-postcss": "
|
|
43
|
+
"gulp-postcss": "10.0.0",
|
|
44
44
|
"gulp-sass": "5.1.0",
|
|
45
45
|
"jest": "29.7.0",
|
|
46
|
-
"npm-run-all2": "5.0.2",
|
|
47
46
|
"postcss": "8.4.33",
|
|
48
47
|
"postcss-scss": "4.0.9",
|
|
49
48
|
"prettier": "3.2.5",
|
package/placeholders/_close.scss
CHANGED
package/variables/_heading.scss
CHANGED
|
@@ -18,4 +18,5 @@ $form-select-indicator-success: url(icons.get-colored-svg-url(
|
|
|
18
18
|
color.$success-green
|
|
19
19
|
)) !default;
|
|
20
20
|
$form-select-indicator-error: url(icons.get-colored-svg-url('2104', color.$error-red)) !default;
|
|
21
|
-
$form-select-indicator-hcm: url(icons.get-colored-svg-url('2113', color.$white)) !default;
|
|
21
|
+
$form-select-indicator-hcm-dark: url(icons.get-colored-svg-url('2113', color.$white)) !default;
|
|
22
|
+
$form-select-indicator-hcm-light: url(icons.get-colored-svg-url('2113', color.$black)) !default;
|
|
@@ -17,12 +17,12 @@ $form-feedback-padding-x: button.$input-btn-padding-x !default;
|
|
|
17
17
|
$form-feedback-padding-y: 0.5 * button.$input-btn-padding-x !default;
|
|
18
18
|
$form-feedback-icon-size: 2rem !default; // Equals 24pt [svg-size]
|
|
19
19
|
$form-feedback-icon-offset: spacing.$size-mini !default;
|
|
20
|
-
$form-feedback-valid-bg: color.$success !default;
|
|
20
|
+
$form-feedback-valid-bg: color.$success-green !default;
|
|
21
21
|
$form-feedback-valid-text: color.$white !default;
|
|
22
22
|
$form-feedback-invalid-bg: color.$error !default;
|
|
23
23
|
$form-feedback-invalid-text: color.$white !default;
|
|
24
|
-
$form-feedback-custom-color: color.$success !default;
|
|
25
|
-
$form-feedback-custom-bg: color.$success !default;
|
|
24
|
+
$form-feedback-custom-color: color.$success-green !default;
|
|
25
|
+
$form-feedback-custom-bg: color.$success-green !default;
|
|
26
26
|
$form-feedback-invalid-box-shadow: 0 0 0 forms.$input-focus-width
|
|
27
27
|
rgba($form-feedback-invalid-color, 0.25) !default;
|
|
28
28
|
$form-feedback-valid-box-shadow: 0 0 0 forms.$input-focus-width
|
|
@@ -36,7 +36,7 @@ $input-line-height-lg: type.$line-height-copy !default;
|
|
|
36
36
|
|
|
37
37
|
$input-bg: color.$white !default;
|
|
38
38
|
$input-disabled-bg: rgba(var(--post-contrast-color-inverted-rgb), 0.6) !default;
|
|
39
|
-
$input-disabled-color: color
|
|
39
|
+
$input-disabled-color: rgba(var(--post-contrast-color-rgb), 0.6); // Design System only
|
|
40
40
|
$input-disabled-border-color: color.$gray-40; // Design System only
|
|
41
41
|
|
|
42
42
|
$input-color: color.$black !default;
|
|
@@ -74,7 +74,7 @@ $notification-variants: list.join(
|
|
|
74
74
|
$notification-variants,
|
|
75
75
|
(
|
|
76
76
|
'primary' color.$gray-80 3134,
|
|
77
|
-
'success' color.$success 2105,
|
|
77
|
+
'success' color.$success-green 2105,
|
|
78
78
|
'danger' color.$error 2104,
|
|
79
79
|
'warning' color.$warning 2104,
|
|
80
80
|
'info' color.$info 2106,
|
|
@@ -1,16 +1,33 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
1
2
|
@use './../color';
|
|
2
3
|
@use './../spacing';
|
|
4
|
+
@use './../type';
|
|
5
|
+
@use './../../functions/sizing';
|
|
3
6
|
|
|
4
7
|
// Spinners
|
|
5
8
|
|
|
6
9
|
$spinner-color-primary: color.$yellow !default;
|
|
7
|
-
$spinner-color-secondary: color.$gray-
|
|
10
|
+
$spinner-color-secondary: color.$gray-60 !default;
|
|
8
11
|
|
|
9
|
-
$spinner-size:
|
|
12
|
+
$spinner-size: type.$font-size-56 !default;
|
|
10
13
|
$spinner-border-width: 6px !default;
|
|
11
14
|
|
|
12
|
-
$spinner-
|
|
15
|
+
$spinner-duration: 3.125s !default;
|
|
16
|
+
$spinner-speed-reduced-motion: math.div(1, 8) !default;
|
|
17
|
+
|
|
18
|
+
$spinner-size-map: (
|
|
19
|
+
16: type.$font-size-16,
|
|
20
|
+
24: type.$font-size-24,
|
|
21
|
+
32: type.$font-size-32,
|
|
22
|
+
40: type.$font-size-40,
|
|
23
|
+
48: type.$font-size-48,
|
|
24
|
+
// 56 is already defined as default
|
|
25
|
+
80: sizing.px-to-rem(80px),
|
|
26
|
+
);
|
|
27
|
+
|
|
28
|
+
// DEPRECATED
|
|
29
|
+
$spinner-size-sm: type.$font-size-40 !default;
|
|
13
30
|
$spinner-border-width-sm: spacing.$size-micro !default;
|
|
14
31
|
|
|
15
|
-
$spinner-size-xs:
|
|
32
|
+
$spinner-size-xs: type.$font-size-16 !default;
|
|
16
33
|
$spinner-border-width-xs: spacing.$size-line !default;
|