@swisspost/design-system-styles 6.5.0 → 6.5.1

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.
@@ -0,0 +1,6 @@
1
+ @use 'sass:map';
2
+ @use '../variables/elevation';
3
+
4
+ @mixin elevation($level) {
5
+ box-shadow: map.get(elevation.$elevation-map, $level);
6
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swisspost/design-system-styles",
3
- "version": "6.5.0",
3
+ "version": "6.5.1",
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,8 +33,8 @@
33
33
  "bootstrap": "5.3.2"
34
34
  },
35
35
  "devDependencies": {
36
- "@swisspost/design-system-icons": "1.0.16",
37
- "@types/node": "18.19.2",
36
+ "@swisspost/design-system-icons": "1.0.17",
37
+ "@types/node": "18.19.5",
38
38
  "autoprefixer": "10.4.16",
39
39
  "copyfiles": "2.4.1",
40
40
  "glob": "10.3.10",
@@ -44,16 +44,16 @@
44
44
  "gulp-sass": "5.1.0",
45
45
  "jest": "29.7.0",
46
46
  "npm-run-all": "4.1.5",
47
- "postcss": "8.4.32",
47
+ "postcss": "8.4.33",
48
48
  "postcss-scss": "4.0.9",
49
- "prettier": "3.1.0",
49
+ "prettier": "3.1.1",
50
50
  "rimraf": "5.0.5",
51
- "sass": "1.69.5",
51
+ "sass": "1.69.7",
52
52
  "stylelint": "15.11.0",
53
53
  "stylelint-config-prettier": "9.0.5",
54
54
  "stylelint-config-sass-guidelines": "10.0.0",
55
55
  "stylelint-prettier": "4.1.0",
56
- "stylelint-scss": "5.3.1",
56
+ "stylelint-scss": "5.3.2",
57
57
  "typescript": "4.9.5"
58
58
  },
59
59
  "sass": {
@@ -14,6 +14,7 @@
14
14
  border-radius: close.$close-border-radius;
15
15
  color: close.$close-color;
16
16
  transition: close.$close-transition;
17
+ cursor: pointer;
17
18
 
18
19
  &::before {
19
20
  @include icons-mx.icon(2043);
@@ -30,4 +31,9 @@
30
31
  &:disabled {
31
32
  color: close.$close-disabled-color;
32
33
  }
34
+
35
+ @include utilities-mx.high-contrast-mode() {
36
+ color: CanvasText;
37
+ forced-color-adjust: none;
38
+ }
33
39
  }
@@ -47,7 +47,7 @@ $warning: #f49e00;
47
47
  $info: #cce4ee;
48
48
 
49
49
  // Signal Colors
50
- $success-green: #2c871d;
50
+ $success-green: #2c871d; /* When value is changed, please changed as well the copied value in ../functions/_contrast.scss, @function light-or-dark()*/
51
51
  $error-red: #a51728;
52
52
  $warning-orange: #f49e00;
53
53
  $success-background: #c0debb;