@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.
- package/_svg-icon-map.scss +1 -1
- package/components/button-group.scss +6 -0
- package/components/dropdown.scss +0 -1
- package/components/floating-label.scss +6 -6
- package/components/form-check.scss +2 -1
- package/index.css +3 -3
- package/intranet.css +3 -3
- package/mixins/_button.scss +0 -1
- package/mixins/_notification.scss +6 -1
- package/package.json +6 -6
- package/placeholders/_index.scss +4 -0
- package/variables/components/_forms.scss +4 -0
- /package/placeholders/{badge.scss → _badge.scss} +0 -0
package/mixins/_button.scss
CHANGED
|
@@ -111,7 +111,12 @@
|
|
|
111
111
|
@include icons-mx.icon($icon);
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
-
//
|
|
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
|
+
"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.
|
|
30
|
+
"@percy/cli": "1.27.4",
|
|
31
31
|
"@percy/cypress": "3.1.2",
|
|
32
|
-
"@swisspost/design-system-icons": "1.0.
|
|
33
|
-
"@types/node": "18.18.
|
|
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.
|
|
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.
|
|
53
|
+
"stylelint-scss": "5.3.0",
|
|
54
54
|
"typescript": "4.9.5"
|
|
55
55
|
},
|
|
56
56
|
"sass": {
|
package/placeholders/_index.scss
CHANGED
|
@@ -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
|