From 24366eae03157c11269449519f3d5f6e218a384f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Sch=C3=A4r?= <59233938+schaertim@users.noreply.github.com> Date: Thu, 19 Dec 2024 10:12:33 +0100 Subject: [PATCH 1/2] chore(components, docs): removed auto slotting from post-logo --- .changeset/big-maps-pay.md | 5 +++++ .changeset/nice-beans-impress.md | 5 +++++ packages/components/src/components/post-logo/post-logo.tsx | 2 +- packages/components/src/index.html | 2 +- .../src/stories/modules/header/components/header.markup.ts | 2 +- 5 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 .changeset/big-maps-pay.md create mode 100644 .changeset/nice-beans-impress.md diff --git a/.changeset/big-maps-pay.md b/.changeset/big-maps-pay.md new file mode 100644 index 0000000000..80189b28fc --- /dev/null +++ b/.changeset/big-maps-pay.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-documentation': patch +--- + +Updated header documentation by specifying logo slot explicitly. 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/packages/components/src/components/post-logo/post-logo.tsx b/packages/components/src/components/post-logo/post-logo.tsx index 313cb0389d..d5ba21c1da 100644 --- a/packages/components/src/components/post-logo/post-logo.tsx +++ b/packages/components/src/components/post-logo/post-logo.tsx @@ -41,7 +41,7 @@ export class PostLogo { const LogoTag = logoLink ? 'a' : 'span'; return ( - +