@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.
@@ -53,6 +53,11 @@
53
53
  h5,
54
54
  .h5 {
55
55
  margin-top: map.get(spacing.$post-sizes, 'bigger-big');
56
+
57
+ // Temporary resolution to avoid margin-top spreading inside Notification Overlay
58
+ .modal-dialog & {
59
+ margin-top: 0;
60
+ }
56
61
  }
57
62
 
58
63
  h5,
@@ -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
  }
@@ -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() {
@@ -72,8 +72,7 @@
72
72
 
73
73
  @include utilities-mx.high-contrast-mode {
74
74
  filter: none !important;
75
- background-color: transparent !important;
76
- border: 2px solid WindowText;
75
+ border: 2px solid CanvasText;
77
76
  }
78
77
  }
79
78
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swisspost/design-system-styles",
3
- "version": "6.6.1",
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.2.0",
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": "9.1.0",
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",
@@ -35,5 +35,9 @@
35
35
  @include utilities-mx.high-contrast-mode() {
36
36
  color: CanvasText;
37
37
  forced-color-adjust: none;
38
+
39
+ @include utilities-mx.not-disabled-focus-hover() {
40
+ color: Highlight;
41
+ }
38
42
  }
39
43
  }
@@ -7,5 +7,5 @@ $grid-breakpoints: (
7
7
  md: 780px,
8
8
  lg: 1024px,
9
9
  xl: 1280px,
10
- xxl: 1441px,
10
+ xxl: 1440px,
11
11
  ) !default;
@@ -30,8 +30,7 @@ $heading-sizes-h4: (
30
30
  );
31
31
 
32
32
  $heading-sizes-h5: (
33
- xs: type.$font-size-14,
34
- sm: type.$font-size-16,
33
+ xs: type.$font-size-16,
35
34
  md: type.$font-size-18,
36
35
  xxl: type.$font-size-20,
37
36
  );
@@ -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.$gray-40; // Design System only
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 !default;
10
+ $spinner-color-secondary: color.$gray-60 !default;
8
11
 
9
- $spinner-size: spacing.$size-huge !default;
12
+ $spinner-size: type.$font-size-56 !default;
10
13
  $spinner-border-width: 6px !default;
11
14
 
12
- $spinner-size-sm: spacing.$size-big !default;
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: spacing.$size-small-regular !default;
32
+ $spinner-size-xs: type.$font-size-16 !default;
16
33
  $spinner-border-width-xs: spacing.$size-line !default;