From 384b11d38c056d0f7807029613c90dfdbd333a09 Mon Sep 17 00:00:00 2001 From: David Ritter <141235163+davidritter-dotcom@users.noreply.github.com> Date: Tue, 23 Jul 2024 08:38:27 +0200 Subject: [PATCH] feat(styles, documentation): styles update text input (#3229) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Oliver Schürch --- .changeset/gold-rabbits-train.md | 6 ++ .../forms/textarea/textarea.stories.ts | 8 +- .../styles/src/components/floating-label.scss | 16 +++- .../styles/src/components/form-select.scss | 50 ------------ .../src/components/form-validation.scss | 81 ------------------- packages/styles/src/components/forms.scss | 13 +-- .../variables/components/_form-select.scss | 8 -- 7 files changed, 28 insertions(+), 154 deletions(-) create mode 100644 .changeset/gold-rabbits-train.md diff --git a/.changeset/gold-rabbits-train.md b/.changeset/gold-rabbits-train.md new file mode 100644 index 0000000000..63cfc9b529 --- /dev/null +++ b/.changeset/gold-rabbits-train.md @@ -0,0 +1,6 @@ +--- +'@swisspost/design-system-documentation': patch +'@swisspost/design-system-styles': patch +--- + +Removed the icon from inside form-controls (`input`, `select`, `textarea`). diff --git a/packages/documentation/src/stories/components/forms/textarea/textarea.stories.ts b/packages/documentation/src/stories/components/forms/textarea/textarea.stories.ts index 8e13aa311a..d2ccae6656 100644 --- a/packages/documentation/src/stories/components/forms/textarea/textarea.stories.ts +++ b/packages/documentation/src/stories/components/forms/textarea/textarea.stories.ts @@ -189,19 +189,19 @@ function renderTextarea(args: Args, context: StoryContext) { : null; const contextual = [ args.validation === 'is-valid' - ? html`
Ggranda sukceso!
` + ? html`
Ggranda sukceso!
` : null, args.validation === 'is-invalid' - ? html`
Eraro okazis!
` + ? html`
Eraro okazis!
` : null, - args.hint !== '' ? html`
${args.hint}
` : null, + args.hint !== '' ? html`
${args.hint}
` : null, ]; const control = html`