From e625c65d2367c1d6c3969dceaadd2b8f31971188 Mon Sep 17 00:00:00 2001 From: leagrdv Date: Tue, 24 Dec 2024 15:39:43 +0100 Subject: [PATCH 1/3] fix(documentation): login required text display fix --- .../documentation/src/stories/introduction.docs.mdx | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/packages/documentation/src/stories/introduction.docs.mdx b/packages/documentation/src/stories/introduction.docs.mdx index b58e53ed0a..1947e73afb 100644 --- a/packages/documentation/src/stories/introduction.docs.mdx +++ b/packages/documentation/src/stories/introduction.docs.mdx @@ -62,16 +62,7 @@ import { technologies } from './introduction.data'; GitHub -

- 1 Login required. Get access with your post account, or use the registration form on - the login page. -
- 2 Login required. Get access with your post account, or click{' '} - - here - - . -

+

1 Login required. Get access with your post account, or use the registration form on the login page.
2 Login required. Get access with your post account, or click here.

From 769054ed771d1ff925725f763a16328fd66d68e5 Mon Sep 17 00:00:00 2001 From: leagrdv Date: Fri, 27 Dec 2024 12:38:01 +0100 Subject: [PATCH 2/3] small fixes on documentation --- .../components/app-store-badge/app-store-badge.stories.ts | 8 ++++---- .../src/stories/components/input/input.stories.ts | 1 - .../src/stories/utilities/opacity/opacity.stories.ts | 3 +++ 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/packages/documentation/src/stories/components/app-store-badge/app-store-badge.stories.ts b/packages/documentation/src/stories/components/app-store-badge/app-store-badge.stories.ts index c0056b5037..acd0623f89 100644 --- a/packages/documentation/src/stories/components/app-store-badge/app-store-badge.stories.ts +++ b/packages/documentation/src/stories/components/app-store-badge/app-store-badge.stories.ts @@ -22,12 +22,12 @@ const meta: MetaComponent = { description: 'Select between Google Play and Apple Store badge', control: { type: 'radio', + labels: { + 'google-play': 'Google Play', + 'apple-store': 'Apple Store', + }, }, options: ['google-play', 'apple-store'], - labels: { - 'google-play': 'Google Play', - 'apple-store': 'Apple Store', - }, table: { category: 'General', }, diff --git a/packages/documentation/src/stories/components/input/input.stories.ts b/packages/documentation/src/stories/components/input/input.stories.ts index f83a4a65c6..5002da2569 100644 --- a/packages/documentation/src/stories/components/input/input.stories.ts +++ b/packages/documentation/src/stories/components/input/input.stories.ts @@ -81,7 +81,6 @@ const meta: MetaComponent = { description: 'The components `type` attribute.', control: { type: 'select', - labels: {}, }, options: [ 'text', diff --git a/packages/documentation/src/stories/utilities/opacity/opacity.stories.ts b/packages/documentation/src/stories/utilities/opacity/opacity.stories.ts index 0372861e8e..f361728386 100644 --- a/packages/documentation/src/stories/utilities/opacity/opacity.stories.ts +++ b/packages/documentation/src/stories/utilities/opacity/opacity.stories.ts @@ -17,6 +17,9 @@ const meta: MetaExtended = { type: 'select', }, options: [0, 25, 50, 75, 100], + table: { + category: 'General', + }, }, }, render: (args: Args) => { From 19938df36d27b22a10de7ede7f183ac6c2d2cbe4 Mon Sep 17 00:00:00 2001 From: leagrdv Date: Fri, 27 Dec 2024 12:39:08 +0100 Subject: [PATCH 3/3] add changeset --- .changeset/spicy-pumpkins-grab.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/spicy-pumpkins-grab.md diff --git a/.changeset/spicy-pumpkins-grab.md b/.changeset/spicy-pumpkins-grab.md new file mode 100644 index 0000000000..0a725db2d3 --- /dev/null +++ b/.changeset/spicy-pumpkins-grab.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-documentation': patch +--- + +Fixed some display issues on storybook documentation.