From 13339963c2bb15e0fda059ec5f83a4d69b2d80f0 Mon Sep 17 00:00:00 2001 From: Vladimir Potekhin <46284632+vladimirpotekhin@users.noreply.github.com> Date: Tue, 6 Feb 2024 19:04:24 +0300 Subject: [PATCH] fix(core): `PrimitiveTextfield` fix memory leak (#6697) (#6698) --- projects/core/styles/mixins/textfield.less | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/projects/core/styles/mixins/textfield.less b/projects/core/styles/mixins/textfield.less index 99927fd660a1..a59754875fda 100644 --- a/projects/core/styles/mixins/textfield.less +++ b/projects/core/styles/mixins/textfield.less @@ -135,6 +135,15 @@ :host[data-size='l']:not(._label-outside) &, :host-context(tui-primitive-textfield[data-size='l']:not(._label-outside)):not(tui-primitive-textfield) { padding-top: 1.25rem; + } + + :host[data-size='m']:not(._label-outside) &, + :host-context(tui-primitive-textfield[data-size='m']:not(._label-outside)):not(tui-primitive-textfield) { + padding-top: 1rem; + } + + :host[data-size='l']:not(._label-outside) & { + padding-top: 1.25rem; // Workaround for raising placeholder in temporary autofill &:-webkit-autofill + .t-content .t-placeholder { @@ -143,10 +152,7 @@ } } - :host[data-size='m']:not(._label-outside) &, - :host-context(tui-primitive-textfield[data-size='m']:not(._label-outside)):not(tui-primitive-textfield) { - padding-top: 1rem; - + :host[data-size='m']:not(._label-outside) & { // Workaround for raising placeholder in temporary autofill &:-webkit-autofill + .t-content .t-placeholder { font-size: 0.69rem;