From 65ebf3dde71106e5f29080e49f1adeede04eaf60 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 13:40:25 +0100 Subject: [PATCH] chore(components, docs): removed auto slotting from post-togglebutton (#4346) --- .changeset/early-knives-own.md | 5 +++++ .changeset/smooth-spoons-matter.md | 5 +++++ .../src/components/post-togglebutton/post-togglebutton.tsx | 1 - packages/components/src/index.html | 2 +- .../src/stories/modules/header/components/header.markup.ts | 2 +- 5 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 .changeset/early-knives-own.md create mode 100644 .changeset/smooth-spoons-matter.md 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/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/packages/components/src/components/post-togglebutton/post-togglebutton.tsx b/packages/components/src/components/post-togglebutton/post-togglebutton.tsx index b0eb329d9d..ac8d98375b 100644 --- a/packages/components/src/components/post-togglebutton/post-togglebutton.tsx +++ b/packages/components/src/components/post-togglebutton/post-togglebutton.tsx @@ -51,7 +51,6 @@ export class PostTogglebutton { render() { return ( - + Menu diff --git a/packages/documentation/src/stories/modules/header/components/header.markup.ts b/packages/documentation/src/stories/modules/header/components/header.markup.ts index a892d2ab9a..43542e2c62 100644 --- a/packages/documentation/src/stories/modules/header/components/header.markup.ts +++ b/packages/documentation/src/stories/modules/header/components/header.markup.ts @@ -11,7 +11,7 @@ export default html` - + Menu