From 7ae2bff4a6d12fef1fbbb9629d9a5815c5a99815 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Riedmu=CC=88ller?= Date: Tue, 8 Oct 2024 09:39:19 +0200 Subject: [PATCH] feat: add line-height variable for input-text --- packages/ui/lib/TextInput/styles.module.css | 1 + packages/ui/lib/default-custom-properties.css | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/ui/lib/TextInput/styles.module.css b/packages/ui/lib/TextInput/styles.module.css index 7a3f3ac..18dead8 100644 --- a/packages/ui/lib/TextInput/styles.module.css +++ b/packages/ui/lib/TextInput/styles.module.css @@ -1,6 +1,7 @@ .textInput { box-sizing: border-box; font-size: 1em; + line-height: var(--sys42-input-text-line-height); background: var(--sys42-input-text-background); border: var(--sys42-input-text-border-width) solid var(--sys42-input-text-border-color); diff --git a/packages/ui/lib/default-custom-properties.css b/packages/ui/lib/default-custom-properties.css index 497a1eb..3f3516b 100644 --- a/packages/ui/lib/default-custom-properties.css +++ b/packages/ui/lib/default-custom-properties.css @@ -104,6 +104,7 @@ --sys42-input-text-border-radius: var(--sys42-border-radius-sm); --sys42-input-text-border-width: 1px; --sys42-input-text-border-color: #ddd; + --sys42-input-text-line-height: inherit; --sys42-input-text-padding-horiz: 0.5rem; --sys42-input-text-padding-vert: 0.5rem;