@swisspost/design-system-styles 6.4.3 → 6.4.4

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.
@@ -4,7 +4,6 @@
4
4
  @use './../variables/components/button';
5
5
  @use './../variables/type';
6
6
  @use './../variables/color' as color-var;
7
- @use './../placeholders/color' as color-ph;
8
7
  @use './../functions/contrast' as contrast-fn;
9
8
  @use 'utilities';
10
9
 
@@ -111,7 +111,12 @@
111
111
  @include icons-mx.icon($icon);
112
112
  }
113
113
 
114
- // icon override (post-icon)
114
+ // Prevent flashing when using post-icon
115
+ &:has(> post-icon)::before {
116
+ content: none;
117
+ }
118
+
119
+ // icon override (post-icon), needed when :has is not supported
115
120
  > post-icon {
116
121
  background-color: $color;
117
122
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swisspost/design-system-styles",
3
- "version": "6.4.3",
3
+ "version": "6.4.4",
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",
@@ -27,13 +27,13 @@
27
27
  },
28
28
  "devDependencies": {
29
29
  "@angular/compiler": "=15.0.4",
30
- "@percy/cli": "1.27.3",
30
+ "@percy/cli": "1.27.4",
31
31
  "@percy/cypress": "3.1.2",
32
- "@swisspost/design-system-icons": "1.0.13",
33
- "@types/node": "18.18.0",
32
+ "@swisspost/design-system-icons": "1.0.14",
33
+ "@types/node": "18.18.8",
34
34
  "autoprefixer": "10.4.16",
35
35
  "copyfiles": "2.4.1",
36
- "cypress": "13.3.3",
36
+ "cypress": "13.4.0",
37
37
  "cypress-storybook": "0.5.1",
38
38
  "glob": "10.3.10",
39
39
  "gulp": "4.0.2",
@@ -50,7 +50,7 @@
50
50
  "stylelint-config-prettier": "9.0.5",
51
51
  "stylelint-config-sass-guidelines": "10.0.0",
52
52
  "stylelint-prettier": "4.0.2",
53
- "stylelint-scss": "5.2.1",
53
+ "stylelint-scss": "5.3.0",
54
54
  "typescript": "4.9.5"
55
55
  },
56
56
  "sass": {
@@ -1,2 +1,6 @@
1
+ @use './badge';
2
+ @use './button';
3
+ @use './close';
4
+ @use './color';
1
5
  @use './dropdown';
2
6
  @use './text';
@@ -121,6 +121,10 @@ $form-floating-label-scale: math.div(
121
121
  $form-floating-label-font-size
122
122
  );
123
123
  $form-floating-label-upscale: math.div(1, $form-floating-label-scale);
124
+ $form-floating-label-padding-t: calc(
125
+ #{$input-border-width} + #{$form-floating-label-height * 0.5} - #{$form-floating-label-font-size *
126
+ type.$line-height-copy * 0.5}
127
+ );
124
128
  $form-floating-label-translate-x: $form-floating-padding-x * (1 - $form-floating-label-scale);
125
129
  $form-floating-label-transform: scale($form-floating-label-scale);
126
130
  $form-floating-transition: animation.$transition-base;
File without changes