From 16530b3da44837c3314190675c43f92fbb454152 Mon Sep 17 00:00:00 2001 From: Lone Iversen <108085781+loivsen@users.noreply.github.com> Date: Wed, 4 Oct 2023 10:52:04 +0200 Subject: [PATCH] font size --- packages/uui-textarea/lib/uui-textarea.element.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/uui-textarea/lib/uui-textarea.element.ts b/packages/uui-textarea/lib/uui-textarea.element.ts index edec89d35..5c042fac3 100644 --- a/packages/uui-textarea/lib/uui-textarea.element.ts +++ b/packages/uui-textarea/lib/uui-textarea.element.ts @@ -13,6 +13,7 @@ import { ifDefined } from 'lit/directives/if-defined.js'; * @cssprop --uui-textarea-min-height - Sets the minimum height of the textarea * @cssprop --uui-textarea-max-height - Sets the maximum height of the textarea * @cssprop {color} --uui-textarea-background-color - Sets the background color of the textarea + * @cssprop --uui-textarea-font-size - Overwrites the default font size */ @defineElement('uui-textarea') export class UUITextareaElement extends FormControlMixin(LitElement) { @@ -26,6 +27,7 @@ export class UUITextareaElement extends FormControlMixin(LitElement) { css` :host { position: relative; + --textarea-font-size: var(--uui-size-5); } :host([error]) textarea { border: 1px solid var(--uui-color-danger) !important; @@ -71,7 +73,7 @@ export class UUITextareaElement extends FormControlMixin(LitElement) { box-sizing: border-box; min-width: 100%; max-width: 100%; - font-size: var(--uui-size-5); + font-size: var(--textarea-font-size); padding: var(--uui-size-2); border: 1px solid var(--uui-textarea-border-color, var(--uui-color-border)); @@ -319,8 +321,8 @@ export class UUITextareaElement extends FormControlMixin(LitElement) { return html`