diff --git a/.changeset/big-maps-pay.md b/.changeset/big-maps-pay.md new file mode 100644 index 0000000000..abaf495264 --- /dev/null +++ b/.changeset/big-maps-pay.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-documentation': patch +--- + +Updated header documentation by specifying `post-logo` slot explicitly. diff --git a/.changeset/early-baboons-cross.md b/.changeset/early-baboons-cross.md new file mode 100644 index 0000000000..2d21811616 --- /dev/null +++ b/.changeset/early-baboons-cross.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-components': patch +--- + +Added a `type="button"` attribute to the `post-close-button` to prevent it from submitting forms. diff --git a/.changeset/early-knives-own.md b/.changeset/early-knives-own.md new file mode 100644 index 0000000000..a9957352a8 --- /dev/null +++ b/.changeset/early-knives-own.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-components': patch +--- + +Removed auto slotting from `post-togglebutton` component to enable more flexible usage. diff --git a/.changeset/flat-badgers-fly.md b/.changeset/flat-badgers-fly.md new file mode 100644 index 0000000000..6e60585de5 --- /dev/null +++ b/.changeset/flat-badgers-fly.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-styles': patch +--- + +Fixed alignment of ´form-switch´ label. diff --git a/.changeset/four-jokes-tease.md b/.changeset/four-jokes-tease.md new file mode 100644 index 0000000000..8d7bcdf701 --- /dev/null +++ b/.changeset/four-jokes-tease.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-styles': patch +--- + +Added hover styles in high contrast mode for the css components `Button`, `Chip`, `Form Search` and `Button Close`. diff --git a/.changeset/fresh-files-crash.md b/.changeset/fresh-files-crash.md new file mode 100644 index 0000000000..56ad7a873e --- /dev/null +++ b/.changeset/fresh-files-crash.md @@ -0,0 +1,7 @@ +--- +'@swisspost/design-system-documentation': patch +'@swisspost/design-system-components': patch +'@swisspost/design-system-styles': patch +--- + +Removed all usage of deprecated utility sizing classes. diff --git a/.changeset/fresh-schools-peel.md b/.changeset/fresh-schools-peel.md new file mode 100644 index 0000000000..23adcd9eb2 --- /dev/null +++ b/.changeset/fresh-schools-peel.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-styles': patch +--- + +Added styles for text links and icon-buttons for Composible Footer in HCM. \ No newline at end of file diff --git a/.changeset/good-spoons-tie.md b/.changeset/good-spoons-tie.md new file mode 100644 index 0000000000..757d40ce10 --- /dev/null +++ b/.changeset/good-spoons-tie.md @@ -0,0 +1,6 @@ +--- +'@swisspost/design-system-nextjs-integration': patch +'@swisspost/design-system-documentation': patch +--- + +Aligned `width` and `height` percentage classes, after utility update. diff --git a/.changeset/metal-geese-swim.md b/.changeset/metal-geese-swim.md new file mode 100644 index 0000000000..7f3b1db1d5 --- /dev/null +++ b/.changeset/metal-geese-swim.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-styles': patch +--- + +Fixed colors of validation icon in HCM on form elements. diff --git a/.changeset/nice-beans-impress.md b/.changeset/nice-beans-impress.md new file mode 100644 index 0000000000..811fe3119b --- /dev/null +++ b/.changeset/nice-beans-impress.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-components': patch +--- + +Removed auto slotting from `post-logo` component to enable more flexible usage. diff --git a/.changeset/olive-squids-enjoy.md b/.changeset/olive-squids-enjoy.md new file mode 100644 index 0000000000..f667d96864 --- /dev/null +++ b/.changeset/olive-squids-enjoy.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-styles': patch +--- + +Fixed card control checkboxes' text color in HCM. diff --git a/.changeset/real-phones-scream.md b/.changeset/real-phones-scream.md new file mode 100644 index 0000000000..76b359853e --- /dev/null +++ b/.changeset/real-phones-scream.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-components': patch +--- + +Modified header megadropdown to close when focus is moved outside. diff --git a/.changeset/smooth-spoons-matter.md b/.changeset/smooth-spoons-matter.md new file mode 100644 index 0000000000..81dd15621a --- /dev/null +++ b/.changeset/smooth-spoons-matter.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-documentation': patch +--- + +Updated header documentation by specifying `post-togglebutton` slot explicitly. diff --git a/.changeset/stale-guests-love.md b/.changeset/stale-guests-love.md new file mode 100644 index 0000000000..eb7a80587d --- /dev/null +++ b/.changeset/stale-guests-love.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-styles': major +--- + +Removed deprecated utility sizing and line-height classes as well as `responsive-size`, `generate-utility-class` and all `bezel-*` mixins. diff --git a/.changeset/warm-walls-stare.md b/.changeset/warm-walls-stare.md new file mode 100644 index 0000000000..8ec7a47d0a --- /dev/null +++ b/.changeset/warm-walls-stare.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-styles': patch +--- + +Refactored icon declarations to comply with Angular 18's new build system requirements. diff --git a/.changeset/wicked-scissors-buy.md b/.changeset/wicked-scissors-buy.md new file mode 100644 index 0000000000..79950fb357 --- /dev/null +++ b/.changeset/wicked-scissors-buy.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-components': patch +--- + +Removed focus from collapsible when in collapsed state. diff --git a/packages/components/cypress/fixtures/post-popover.test.html b/packages/components/cypress/fixtures/post-popover.test.html index 23d880fb52..94ba27b7be 100644 --- a/packages/components/cypress/fixtures/post-popover.test.html +++ b/packages/components/cypress/fixtures/post-popover.test.html @@ -4,6 +4,10 @@ Document + diff --git a/packages/components/src/components/post-card-control/post-card-control.scss b/packages/components/src/components/post-card-control/post-card-control.scss index ba070ab501..4922e020a0 100644 --- a/packages/components/src/components/post-card-control/post-card-control.scss +++ b/packages/components/src/components/post-card-control/post-card-control.scss @@ -4,6 +4,10 @@ @use '@swisspost/design-system-styles/components/form-check'; @use '@swisspost/design-system-styles/components/checkbox'; @use '@swisspost/design-system-styles/components/radio-button'; +@use '@swisspost/design-system-styles/tokens/utilities'; +@use '@swisspost/design-system-styles/functions/tokens'; + +tokens.$default-map: utilities.$post-spacing; /* * There are a whole bunch of !important statements in this file. @@ -22,7 +26,7 @@ :host-context(fieldset) { &:host(:not(:last-child)) { .card-control { - margin-bottom: post.$size-regular; + margin-bottom: tokens.get('utility-gap-16'); } } } @@ -38,18 +42,18 @@ display: grid; grid-template: 'input label icon' 'input content content' / min-content auto min-content; align-items: center; - gap: 0 post.$size-mini; + gap: 0 tokens.get('utility-gap-8'); margin: 0; - padding: post.$size-regular; + padding: tokens.get('utility-gap-12'); background-color: var(--post-card-control-bg); - border: post.$size-line solid var(--post-card-control-border-color); + border: tokens.get('utility-gap-2') solid var(--post-card-control-border-color); border-radius: post.$border-radius; color: var(--post-card-control-color) !important; cursor: pointer; .card-control--input { grid-area: input; - margin: post.$size-micro 0; + margin: tokens.get('utility-gap-4') 0; background-color: var(--post-card-control-input-bg) !important; border-color: var(--post-card-control-input-border-color) !important; color: var(--post-card-control-input-border-color) !important; @@ -79,7 +83,7 @@ .card-control--label { grid-area: label; - margin: post.$size-micro 0; + margin: tokens.get('utility-gap-4') 0; padding: 0 !important; color: inherit !important; pointer-events: none; @@ -101,8 +105,8 @@ .card-control--icon { grid-area: icon; - width: post.$size-big; - height: post.$size-big; + width: tokens.get('utility-gap-32'); + height: tokens.get('utility-gap-32'); pointer-events: none; > slot { @@ -195,11 +199,11 @@ --post-card-control-input-border-color: FieldText; --post-card-control-input-bg: Field; - outline: post.$size-line solid Field; - outline-offset: post.$size-line * -2; + outline: tokens.get('utility-gap-2') solid Field; + outline-offset: calc(tokens.get('utility-gap-2') * -2); .card-control--input { - outline: post.$size-line solid Field; + outline: tokens.get('utility-gap-2') solid Field; // selector needed to override the .form-check styles &[type] { @@ -264,7 +268,7 @@ display: block; content: ''; position: absolute; - inset: post.$size-line; + inset: tokens.get('utility-gap-2'); background-color: SelectedItem; z-index: 1; } @@ -296,8 +300,8 @@ display: block; content: ''; position: absolute; - inset: post.$size-line; - border-radius: post.$size-line * 0.5; + inset: tokens.get('utility-gap-2'); + border-radius: calc(tokens.get('utility-gap-2') * 0.5); background-color: SelectedItem; } @@ -306,7 +310,7 @@ } .card-control--input { - outline: post.$size-line solid Field; + outline: tokens.get('utility-gap-2') solid Field; } } } @@ -432,7 +436,7 @@ :host([data-context*='fieldset']:not(:last-child)) { .card-control { - margin-bottom: post.$size-regular; + margin-bottom: tokens.get('utility-gap-16'); } } diff --git a/packages/components/src/components/post-closebutton/post-closebutton.tsx b/packages/components/src/components/post-closebutton/post-closebutton.tsx index 0d447ab844..fbd679d15c 100644 --- a/packages/components/src/components/post-closebutton/post-closebutton.tsx +++ b/packages/components/src/components/post-closebutton/post-closebutton.tsx @@ -14,7 +14,7 @@ export class PostClosebutton { render() { return ( - - @@ -311,11 +311,11 @@ export const Multipart: Story = {
- -
diff --git a/packages/documentation/src/stories/components/checkbox/checkbox.snapshot.stories.ts b/packages/documentation/src/stories/components/checkbox/checkbox.snapshot.stories.ts index a3bc447d70..ff4778d2c1 100644 --- a/packages/documentation/src/stories/components/checkbox/checkbox.snapshot.stories.ts +++ b/packages/documentation/src/stories/components/checkbox/checkbox.snapshot.stories.ts @@ -56,7 +56,7 @@ export const Checkbox: Story = { `; })} -
+
${Inline.render?.({ ...context.args, ...Inline.args }, context)} `, diff --git a/packages/documentation/src/stories/components/rating/post-rating.snapshot.stories.ts b/packages/documentation/src/stories/components/rating/post-rating.snapshot.stories.ts index 6b43d11484..f4da0bc246 100644 --- a/packages/documentation/src/stories/components/rating/post-rating.snapshot.stories.ts +++ b/packages/documentation/src/stories/components/rating/post-rating.snapshot.stories.ts @@ -18,8 +18,8 @@ export const Rating: Story = { return schemes( () => html`
-
readonly: false
-
readonly: true
+
readonly: false
+
readonly: true
${bombArgs({ stars: [3, 5, 10], @@ -30,10 +30,10 @@ export const Rating: Story = { (args: Args) => html`
-
+
${meta.render?.({ ...context.args, ...args, readonly: false }, context)}
-
+
${meta.render?.({ ...context.args, ...args, readonly: true }, context)}
diff --git a/packages/documentation/src/stories/components/segmented-button/segmented-button.snapshot.stories.ts b/packages/documentation/src/stories/components/segmented-button/segmented-button.snapshot.stories.ts index 309d2a5182..1045932fce 100644 --- a/packages/documentation/src/stories/components/segmented-button/segmented-button.snapshot.stories.ts +++ b/packages/documentation/src/stories/components/segmented-button/segmented-button.snapshot.stories.ts @@ -18,7 +18,7 @@ export const SegmentedButton: Story = { return schemes( scheme => html` -
+
${labelCounts.map(count => { const labels = Array.from({ length: count }, (_, i) => `Label ${i + 1}`); diff --git a/packages/documentation/src/stories/components/select-custom/select-custom-basic.sample.html b/packages/documentation/src/stories/components/select-custom/select-custom-basic.sample.html index 0a98a341b4..4ad7a02e91 100644 --- a/packages/documentation/src/stories/components/select-custom/select-custom-basic.sample.html +++ b/packages/documentation/src/stories/components/select-custom/select-custom-basic.sample.html @@ -12,7 +12,7 @@ Default custom-select -
+