From a23e77724359125fba0495c66d5ffd133ff70f6b Mon Sep 17 00:00:00 2001 From: Kersten Lorenz <467620+loxy@users.noreply.github.com> Date: Wed, 9 Mar 2022 13:05:50 +0100 Subject: [PATCH] feat(core): `PrimitiveTextfield` use CSS variables for font sizes of label (#1494) --- projects/core/styles/mixins/textfield.less | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/projects/core/styles/mixins/textfield.less b/projects/core/styles/mixins/textfield.less index bd104af2d3d3..9265ac2fcb96 100644 --- a/projects/core/styles/mixins/textfield.less +++ b/projects/core/styles/mixins/textfield.less @@ -21,7 +21,7 @@ height: var(--tui-height-l); min-height: var(--tui-height-l); max-height: var(--tui-height-l); - font-size: 0.9375rem; + font: var(--tui-font-text-m); } } @@ -138,7 +138,6 @@ .text-overflow(); display: block; width: 100%; - font-size: 0.8125rem; user-select: none; color: var(--tui-text-02); pointer-events: none; @@ -147,7 +146,7 @@ transform: translateY(-0.625rem); :host[data-size='m'] & { - font-size: 0.69rem; + font: var(--tui-font-text-xs); transform: translateY(-0.5rem); letter-spacing: 0.025rem; }