diff --git a/alfa-client/apps/admin/src/styles.scss b/alfa-client/apps/admin/src/styles.scss index 7b1b58c9142cd339bb9d67222e7a1c619bc151dc..9a4448d0f9c72e50e1aac1b190f36cf3118d060a 100644 --- a/alfa-client/apps/admin/src/styles.scss +++ b/alfa-client/apps/admin/src/styles.scss @@ -7,8 +7,6 @@ @import 'libs/design-system/src/lib/tailwind-preset/root.css'; @import 'libs/ui/src/lib/font/font_material'; -@import 'libs/admin/settings/src/lib/postfach/postfach-container/postfach-form/postfach-signatur/postfach-signatur.component.theme.scss'; - @include mat.all-component-typographies(); @include mat.core(); diff --git a/alfa-client/libs/admin/settings/src/lib/postfach/postfach-container/postfach-form/postfach-signatur/postfach-signatur.component.html b/alfa-client/libs/admin/settings/src/lib/postfach/postfach-container/postfach-form/postfach-signatur/postfach-signatur.component.html index a69ca6d98913e8ad0936e9cbde551ffa9ef08b55..a0d251c9e393b6755b2705705da3e049a2271e55 100644 --- a/alfa-client/libs/admin/settings/src/lib/postfach/postfach-container/postfach-form/postfach-signatur/postfach-signatur.component.html +++ b/alfa-client/libs/admin/settings/src/lib/postfach/postfach-container/postfach-form/postfach-signatur/postfach-signatur.component.html @@ -5,6 +5,7 @@ </p> <ods-textarea-editor [formControlName]="formServiceClass.SIGNATUR_FIELD" + [isResizable]="false" data-test-id="signatur-text" label="" rows="6" diff --git a/alfa-client/libs/admin/settings/src/lib/postfach/postfach-container/postfach-form/postfach-signatur/postfach-signatur.component.theme.scss b/alfa-client/libs/admin/settings/src/lib/postfach/postfach-container/postfach-form/postfach-signatur/postfach-signatur.component.theme.scss deleted file mode 100644 index 638f52eb9bccd7cf3edebcc349046b5dfcb9b610..0000000000000000000000000000000000000000 --- a/alfa-client/libs/admin/settings/src/lib/postfach/postfach-container/postfach-form/postfach-signatur/postfach-signatur.component.theme.scss +++ /dev/null @@ -1,5 +0,0 @@ -postfach-signatur { - textarea { - resize: none !important; - } -} diff --git a/alfa-client/libs/design-component/src/lib/form/textarea-editor/textarea-editor.component.html b/alfa-client/libs/design-component/src/lib/form/textarea-editor/textarea-editor.component.html index c27f425a3f9ca703f85b9961a8c87175a50a0a9f..baa159622243b8c03783314ee0f27e17cf6c78a4 100644 --- a/alfa-client/libs/design-component/src/lib/form/textarea-editor/textarea-editor.component.html +++ b/alfa-client/libs/design-component/src/lib/form/textarea-editor/textarea-editor.component.html @@ -7,6 +7,7 @@ [attr.data-test-id]="(label | convertForDataTest) + '-textarea-editor'" [required]="isRequired" [focus]="focus" + [isResizable]="isResizable" > <ods-validation-error error diff --git a/alfa-client/libs/design-component/src/lib/form/textarea-editor/textarea-editor.component.ts b/alfa-client/libs/design-component/src/lib/form/textarea-editor/textarea-editor.component.ts index a47b955192b12c4a9ce1379062cd16543e455e2a..5dea452149b2facd76f03b209835786e7af4b970 100644 --- a/alfa-client/libs/design-component/src/lib/form/textarea-editor/textarea-editor.component.ts +++ b/alfa-client/libs/design-component/src/lib/form/textarea-editor/textarea-editor.component.ts @@ -24,6 +24,7 @@ export class TextareaEditorComponent extends FormControlEditorAbstractComponent @Input() rows: number = 10; @Input() isRequired: boolean = false; @Input() focus: boolean = false; + @Input() isResizable: boolean = true; get variant(): string { return this.invalidParams.length > 0 ? 'error' : 'default'; diff --git a/alfa-client/libs/design-system/src/lib/form/textarea/textarea.component.ts b/alfa-client/libs/design-system/src/lib/form/textarea/textarea.component.ts index 2c4340b9f30232e900ef8a4ac8c845adf4765d41..5c418556063b84c751fd274fbd901f18cd3eb4a3 100644 --- a/alfa-client/libs/design-system/src/lib/form/textarea/textarea.component.ts +++ b/alfa-client/libs/design-system/src/lib/form/textarea/textarea.component.ts @@ -38,7 +38,7 @@ type TextareaVariants = VariantProps<typeof textareaVariants>; [id]="id" [formControl]="fieldControl" [rows]="rows" - [ngClass]="textareaVariants({ variant })" + [ngClass]="[textareaVariants({ variant }), isResizable ? 'resize' : 'resize-none']" [placeholder]="placeholder" [autocomplete]="autocomplete" [attr.aria-required]="required" @@ -64,6 +64,7 @@ export class TextareaComponent { @Input() variant: TextareaVariants['variant']; @Input() fieldControl: FormControl = new FormControl(EMPTY_STRING); @Input() required: boolean = false; + @Input() isResizable: boolean = true; @Input() set focus(value: boolean) { if (value && this.textAreaElement) {