diff --git a/.changeset/clean-dodos-joke.md b/.changeset/clean-dodos-joke.md
new file mode 100644
index 0000000000..822a6c8ec1
--- /dev/null
+++ b/.changeset/clean-dodos-joke.md
@@ -0,0 +1,5 @@
+---
+'@swisspost/internet-header': patch
+---
+
+Improve the main navigation slot placement and styling.
diff --git a/.changeset/many-pets-divide.md b/.changeset/many-pets-divide.md
new file mode 100644
index 0000000000..ee561400cc
--- /dev/null
+++ b/.changeset/many-pets-divide.md
@@ -0,0 +1,5 @@
+---
+'@swisspost/design-system-documentation': minor
+---
+
+Add a page on how to add custom content to the internet header main navigation.
diff --git a/packages/documentation/src/stories/components/internet-header/components/header/header.stories.ts b/packages/documentation/src/stories/components/internet-header/components/header/header.stories.ts
index 9ba76acfbf..acd9b41ba6 100644
--- a/packages/documentation/src/stories/components/internet-header/components/header/header.stories.ts
+++ b/packages/documentation/src/stories/components/internet-header/components/header/header.stories.ts
@@ -1,8 +1,7 @@
import { Args, Meta, StoryObj } from '@storybook/web-components';
import { BADGE } from '../../../../../../.storybook/constants';
import { html } from 'lit';
-import { spread } from '@open-wc/lit-helpers';
-import { getAttributes } from '../../../../../utils';
+import { spreadArgs } from '../../../../../utils';
import customConfig from './config/custom-config';
import osFlyoutOverrides from './config/os-flyout-overrides';
import languageSwitchOverrides from './config/language-switch-overrides';
@@ -172,10 +171,9 @@ const meta: Meta = {
],
};
-function render(args: Args) {
- const attributes = getAttributes(args, arg => arg !== null && arg !== undefined);
+function render({ innerHMTL, ...args }: Args) {
return html`
-
+
`;
}
@@ -217,3 +215,9 @@ export const OSFlyoutOverrides: Story = {
},
},
};
+
+export const CustomContent: Story = {
+ args: {
+ innerHTML: `
+
+ this.handleMainSlotChange(e)}>
+
this.handleDropdownToggled(e)}>
@@ -520,7 +529,6 @@ export class PostInternetHeader {
mode="dropdown"
>
-
diff --git a/packages/internet-header/src/components/post-main-navigation/post-main-navigation.scss b/packages/internet-header/src/components/post-main-navigation/post-main-navigation.scss
index 5753ef86ad..9e3264e0bb 100644
--- a/packages/internet-header/src/components/post-main-navigation/post-main-navigation.scss
+++ b/packages/internet-header/src/components/post-main-navigation/post-main-navigation.scss
@@ -12,6 +12,7 @@
display: block;
min-width: 0;
height: var(--header-height);
+ flex-shrink: 0;
}
:host(.no-animation) {
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 63ab80ff8a..0c317cdc47 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -9390,7 +9390,7 @@ packages:
engines: {node: ^10 || ^12 || >=14}
hasBin: true
peerDependencies:
- postcss: '>=8.4.31'
+ postcss: ^8.1.0
dependencies:
browserslist: 4.22.2
caniuse-lite: 1.0.30001566
@@ -9406,7 +9406,7 @@ packages:
engines: {node: ^10 || ^12 || >=14}
hasBin: true
peerDependencies:
- postcss: '>=8.4.31'
+ postcss: ^8.1.0
dependencies:
browserslist: 4.22.2
caniuse-lite: 1.0.30001566
@@ -9422,7 +9422,7 @@ packages:
engines: {node: ^10 || ^12 || >=14}
hasBin: true
peerDependencies:
- postcss: '>=8.4.31'
+ postcss: ^8.1.0
dependencies:
browserslist: 4.21.10
caniuse-lite: 1.0.30001538
@@ -13293,7 +13293,7 @@ packages:
resolution: {integrity: sha512-9QUHam5JyXwGUxaaMvoFQVT44tohpEFpM8xBdPfdwTYGM0AItS1iTQz0MpsF8Jroh7GF5Jt2GVPaYgvy8qD2Fw==}
engines: {node: ^10 || ^12 || >=14}
peerDependencies:
- postcss: '>=8.4.31'
+ postcss: ^8.0.0
dependencies:
fancy-log: 1.3.3
plugin-error: 1.0.1
@@ -13748,7 +13748,7 @@ packages:
resolution: {integrity: sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA==}
engines: {node: ^10 || ^12 || >= 14}
peerDependencies:
- postcss: '>=8.4.31'
+ postcss: ^8.1.0
dependencies:
postcss: 8.4.32
dev: true
@@ -17573,7 +17573,7 @@ packages:
resolution: {integrity: sha512-6DiM4E7v4coTE4uzA8U//WhtPwyhiim3eyjEMFCnUpzbrkK9wJHgKDT2mR+HbtSrd/NubVaYTOpSpjUl8NQeRg==}
engines: {node: '>= 10'}
peerDependencies:
- postcss: '>=8.4.31'
+ postcss: '>=8.0.9'
ts-node: '>=9.0.0'
peerDependenciesMeta:
postcss:
@@ -17590,7 +17590,7 @@ packages:
resolution: {integrity: sha512-YgO/yhtevGO/vJePCQmTxiaEwER94LABZN0ZMT4A0vsak9TpO+RvKRs7EmJ8peIlB9xfXCsS7M8LjqncsUZ5HA==}
engines: {node: '>= 14.15.0'}
peerDependencies:
- postcss: '>=8.4.31'
+ postcss: ^7.0.0 || ^8.0.1
webpack: ^5.0.0
dependencies:
cosmiconfig: 8.2.0
@@ -17608,7 +17608,7 @@ packages:
resolution: {integrity: sha512-bdHleFnP3kZ4NYDhuGlVK+CMrQ/pqUm8bx/oGL93K6gVwiclvX5x0n76fYMKuIGKzlABOy13zsvqjb0f92TEXw==}
engines: {node: ^10 || ^12 || >= 14}
peerDependencies:
- postcss: '>=8.4.31'
+ postcss: ^8.1.0
dependencies:
postcss: 8.4.32
dev: true
@@ -17617,7 +17617,7 @@ packages:
resolution: {integrity: sha512-2/u2zraspoACtrbFRnTijMiQtb4GW4BvatjaG/bCjYQo8kLTdevCUlwuBHx2sCnSyrI3x3qj4ZK1j5LQBgzmwA==}
engines: {node: ^10 || ^12 || >= 14}
peerDependencies:
- postcss: '>=8.4.31'
+ postcss: ^8.1.0
dependencies:
icss-utils: 5.1.0(postcss@8.4.32)
postcss: 8.4.32
@@ -17629,7 +17629,7 @@ packages:
resolution: {integrity: sha512-hncihwFA2yPath8oZ15PZqvWGkWf+XUfQgUGamS4LqoP1anQLOsOJw0vr7J7IwLpoY9fatA2qiGUGmuZL0Iqlg==}
engines: {node: ^10 || ^12 || >= 14}
peerDependencies:
- postcss: '>=8.4.31'
+ postcss: ^8.1.0
dependencies:
postcss: 8.4.32
postcss-selector-parser: 6.0.13
@@ -17639,7 +17639,7 @@ packages:
resolution: {integrity: sha512-RDxHkAiEGI78gS2ofyvCsu7iycRv7oqw5xMWn9iMoR0N/7mf9D50ecQqUo5BZ9Zh2vH4bCUR/ktCqbB9m8vJjQ==}
engines: {node: ^10 || ^12 || >= 14}
peerDependencies:
- postcss: '>=8.4.31'
+ postcss: ^8.1.0
dependencies:
icss-utils: 5.1.0(postcss@8.4.32)
postcss: 8.4.32
@@ -17653,7 +17653,7 @@ packages:
resolution: {integrity: sha512-FARHN8pwH+WiS2OPCxJI8FuRJpTVnn6ZNFiqAM2aeW2LwTHWWmWgIyKC6cUo0L8aeKiF/14MNvnpls6R2PBeMQ==}
engines: {node: '>=12.0'}
peerDependencies:
- postcss: '>=8.4.31'
+ postcss: ^8.3.3
dependencies:
postcss: 8.4.32
dev: true
@@ -17662,7 +17662,7 @@ packages:
resolution: {integrity: sha512-AjKOeiwAitL/MXxQW2DliT28EKukvvbEWx3LBmJIRN8KfBGZbRTxNYW0kSqi1COiTZ57nZ9NW06S6ux//N1c9A==}
engines: {node: '>=12.0'}
peerDependencies:
- postcss: '>=8.4.31'
+ postcss: ^8.4.29
dependencies:
postcss: 8.4.32
dev: true
@@ -17679,7 +17679,7 @@ packages:
resolution: {integrity: sha512-FUzyxfI5l2tKmXdYc6VTu3TWZsInayEKPbiyW+P6vmmIrrb4I6CGX0BFoewgYHLK+oIL5FECEK02REYRpBvUCw==}
engines: {node: '>=10'}
peerDependencies:
- postcss: '>=8.4.31'
+ postcss: ^8.0.0
dependencies:
make-dir: 3.1.0
mime: 2.5.2
@@ -19631,7 +19631,7 @@ packages:
resolution: {integrity: sha512-+Rr2Dd4b72CWA4qoj1Kk+y449nP/WJsrD0nzQAWkmPPIuyVcy2GMIcfNr0Z8JJOLjRvtlkKxa49FCNXMePBikQ==}
engines: {node: ^14.13.1 || >=16.13.0 || >=18.0.0}
peerDependencies:
- postcss: '>=8.4.31'
+ postcss: ^8.4.21
stylelint: ^15.2.0 || >=15
dependencies:
postcss: 8.4.32