Skip to content

Commit 3d64a9e

Browse files
authored
Merge branch 'main' into update-megadropdown-slots
2 parents 60573e9 + 79a08ba commit 3d64a9e

37 files changed

+793
-53
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
'@swisspost/design-system-icons': minor
3+
---
4+
5+
Added icons:
6+
7+
- `bed` (line & solid): 16, 24, 32, 40, 48 and 64px
8+
- `hourglass` (line & solid): 16, 24, 32, 40, 48 and 64px

.changeset/polite-flowers-smell.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
'@swisspost/design-system-styles': major
3+
'@swisspost/design-system-documentation': patch
4+
---
5+
6+
Refactored the icon mixins so that icons no longer need to be included separately, imports are now handled automatically.
7+
The `custom-property` mixin as therefore be removed entirely.
8+
9+
The `icon` mixin arguments have also been updated: `$height` and `$width` have been replaced with a single `$size` since all icons are square.

packages/components/src/components/post-stepper-item/post-stepper-item.scss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77

88
tokens.$default-map: components.$post-stepper;
99

10-
@include icons.custom-property('success-solid');
11-
1210
post-stepper-item {
1311
grid-row: 1;
1412
position: relative;

packages/documentation/.storybook/styles/preview.scss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212

1313
tokens.$default-map: utilities.$post-spacing;
1414

15-
@include post.custom-property(('chevrondown', 'resizeexpand', 'link', 'code'));
16-
1715
$monospace: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
1816

1917
// Mixin for toolbar button icons

packages/documentation/src/stories/foundations/icons/icon.styles.scss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
@use '@swisspost/design-system-styles/core' as post;
22

3-
@include post.custom-property(('accessibility', 'letter'));
4-
53
$resizer-padding: 1rem;
64
$resizer-border-width: 1px;
75
$resizer-border-color: #999;
Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
11
@use '@swisspost/design-system-styles/core' as post;
22

3-
// Load icon(s) at the top of your file
4-
// For a single icon:
5-
@include post.custom-property('accessibility', './path/to/icon/folder');
6-
7-
// For multiple icons in the same file:
8-
@include post.custom-property(('accessibility', 'arrow'), './path/to/icon/folder');
3+
// Icon inheriting the size and color from the surrounding text
4+
.my-inline-icon {
5+
@include post.icon('printer');
6+
}
97

10-
.my-icon {
8+
// Icon with custom color and size
9+
.my-custom-icon {
1110
@include post.icon(
1211
$name: 'accessibility',
13-
// optional
1412
$color: '#fc0',
15-
$width: 1em,
16-
$height: 1em
13+
$size: 1em,
1714
);
1815
}

packages/icons/src/icons/post/report.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40633,6 +40633,6 @@
4063340633
"noKeywords": 66,
4063440634
"duplicates": 0
4063540635
},
40636-
"created": "2025-12-10T07:45:41.118Z",
40636+
"created": "2025-12-14T02:30:29.977Z",
4063740637
"version": "10.0.0-next.55"
4063840638
}
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)