@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.
@@ -36,7 +36,7 @@ $svg-icon-map: (
36
36
  '8001':
37
37
  "data:image/svg+xml,%3Csvg xml:space='preserve' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Crect/%3E%3Cpath d='m13.9 12.7-5.5 9.7H1.8l5.5-9.7-3.7-6.4h6.6l3.7 6.4zM30 0h-6.6L12.7 19.1 19.8 32h6.5l-7-12.9L30 0z'/%3E%3C/g%3E%3C/svg%3E",
38
38
  '8000':
39
- "data:image/svg+xml,%3Csvg xml:space='preserve' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='m-50.985 27.059 11.325 15.444-11.397 12.556h2.565l9.978-10.993 8.062 10.993h8.729l-11.962-16.312 10.608-11.688h-2.565l-9.189 10.125-7.425-10.125h-8.729zm3.772 1.926h4.01l17.707 24.146h-4.01l-17.707-24.146z' transform='translate%2852.39 -25.059%29'/%3E%3C/g%3E%3C/svg%3E",
39
+ "data:image/svg+xml,%3Csvg xml:space='preserve' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='M24.87 2.667h4.714L19.288 14.465 31.401 30.52h-9.483l-7.428-9.739-8.5 9.739H1.274L12.286 17.9.667 2.667h9.725l6.713 8.899 7.766-8.899h-.001zm-1.652 25.025h2.612L8.971 5.346H6.17l17.048 22.346z'/%3E%3C/g%3E%3C/svg%3E",
40
40
  '3260':
41
41
  "data:image/svg+xml,%3Csvg xml:space='preserve' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Crect/%3E%3Cpath d='M16 4C9.3 4 4 9.4 4 16s5.4 12 12 12 12-5.4 12-12S22.6 4 16 4zm0 1.3c2 0 3.9.6 5.5 1.6-1.5 1.7-6.8 6.6-14.7 3.7 1.9-3.2 5.3-5.3 9.2-5.3zm0 21.4c-5.9 0-10.7-4.8-10.7-10.7 0-1.5.3-2.9.9-4.2 1.9.7 3.8 1.1 5.4 1.1 5.8 0 9.7-3.8 11-5.2 2.5 2 4.1 5 4.1 8.4 0 5.8-4.8 10.6-10.7 10.6zm-3.3-10h-1.3c0-.4-.3-.7-.7-.7-.4 0-.7.3-.7.7H8.7c0-1.1.9-2 2-2s2 .9 2 2zm10.6 0H22c0-.4-.3-.7-.7-.7s-.7.3-.7.7h-1.3c0-1.1.9-2 2-2s2 .9 2 2zm-11.9 3.8h9.3v1.3h-9.3v-1.3z'/%3E%3C/g%3E%3C/svg%3E",
42
42
  '3259':
@@ -45,3 +45,9 @@
45
45
  }
46
46
  }
47
47
  }
48
+
49
+ .btn-check {
50
+ position: absolute;
51
+ clip: rect(0, 0, 0, 0);
52
+ pointer-events: none;
53
+ }
@@ -3,7 +3,6 @@
3
3
  @use './../lic/bootstrap-license';
4
4
  @use './../themes/bootstrap/dropdown' as bd;
5
5
 
6
- @use './../placeholders/close';
7
6
  @use './../variables/color';
8
7
  @use './../variables/commons';
9
8
  @use './../variables/icons';
@@ -20,10 +20,7 @@
20
20
  left: forms.$input-border-width;
21
21
  margin: 0;
22
22
  padding-inline: forms.$form-floating-padding-x;
23
- padding-top: calc(
24
- #{forms.$input-border-width} + #{forms.$form-floating-label-height * 0.5} - #{forms.$form-floating-label-font-size *
25
- type.$line-height-copy * 0.5}
26
- );
23
+ padding-top: forms.$form-floating-label-padding-t;
27
24
  padding-bottom: 0;
28
25
  border: 0;
29
26
  color: forms.$form-floating-label-color;
@@ -90,12 +87,15 @@
90
87
  transition: forms.$form-floating-transition-in;
91
88
  }
92
89
 
93
- &:empty {
90
+ // TODO: replace with :has
91
+ &:empty,
92
+ &.form-select-empty {
94
93
  padding-top: forms.$form-floating-input-padding-t;
95
94
  padding-bottom: forms.$form-floating-input-padding-b;
96
95
 
97
96
  ~ label {
98
- padding-top: forms.$form-floating-padding-y;
97
+ color: forms.$form-floating-label-color;
98
+ padding-top: forms.$form-floating-label-padding-t;
99
99
  max-width: calc(100% - (#{forms.$input-border-width * 2}));
100
100
  transform: none;
101
101
  }
@@ -84,9 +84,10 @@
84
84
  border-radius: 50%;
85
85
 
86
86
  &:checked::after {
87
- border: spacing.$size-micro solid color.$white;
87
+ border: spacing.$size-micro solid transparent;
88
88
  background-color: currentColor;
89
89
  border-radius: inherit;
90
+ background-clip: padding-box;
90
91
  }
91
92
  }
92
93