From 7408397cae7e07c34f3cbcd45000c48cfcfa48a3 Mon Sep 17 00:00:00 2001 From: Lea Date: Thu, 5 Dec 2024 08:39:39 +0100 Subject: [PATCH] feat(styles, documentation): textarea component (#4062) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Alizé Debray <33580481+alizedebray@users.noreply.github.com> --- .changeset/flat-bears-tap.md | 6 + .changeset/purple-terms-march.md | 6 + .../segmented-button.docs.mdx | 2 +- .../components/textarea/textarea.docs.mdx | 36 +--- .../textarea/textarea.snapshot.stories.ts | 41 ++-- .../components/textarea/textarea.stories.ts | 75 +------ .../layout/containers/containers.docs.mdx | 2 +- .../utilities/overflow/overflow.docs.mdx | 4 +- .../styles/src/components/floating-label.scss | 71 +------ .../styles/src/components/form-textarea.scss | 189 +++++++++++++++++- packages/styles/src/components/forms.scss | 10 +- packages/styles/src/mixins/_forms.scss | 10 + .../src/variables/components/_forms.scss | 20 +- 13 files changed, 230 insertions(+), 242 deletions(-) create mode 100644 .changeset/flat-bears-tap.md create mode 100644 .changeset/purple-terms-march.md diff --git a/.changeset/flat-bears-tap.md b/.changeset/flat-bears-tap.md new file mode 100644 index 0000000000..e7876f96fc --- /dev/null +++ b/.changeset/flat-bears-tap.md @@ -0,0 +1,6 @@ +--- +'@swisspost/design-system-documentation': major +'@swisspost/design-system-styles': major +--- + +Removed size variants for textarea form control. The sizing classes `.form-control-sm`, `.form-control-rg` and `.form-control-lg` for textarea no longer have any effect and can be removed safely. diff --git a/.changeset/purple-terms-march.md b/.changeset/purple-terms-march.md new file mode 100644 index 0000000000..317e86c951 --- /dev/null +++ b/.changeset/purple-terms-march.md @@ -0,0 +1,6 @@ +--- +'@swisspost/design-system-documentation': minor +'@swisspost/design-system-styles': minor +--- + +Updated `.form-control` textarea to new Post design. diff --git a/packages/documentation/src/stories/components/segmented-button/segmented-button.docs.mdx b/packages/documentation/src/stories/components/segmented-button/segmented-button.docs.mdx index 73aaaebc93..f1c1e949e6 100644 --- a/packages/documentation/src/stories/components/segmented-button/segmented-button.docs.mdx +++ b/packages/documentation/src/stories/components/segmented-button/segmented-button.docs.mdx @@ -15,7 +15,7 @@ import StylesPackageImport from '@/shared/styles-package-import.mdx'; The segmented button is a single-select component. It allows users to toggle between two or more content sections within the same area on the screen. -