Skip to content

Commit

Permalink
fix(core): PrimitiveTextfield fix memory leak (#6697)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimirpotekhin authored Feb 6, 2024
1 parent d4bab1a commit ff86243
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions projects/core/styles/mixins/textfield.less
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,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 {
Expand All @@ -140,10 +149,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;
Expand Down

0 comments on commit ff86243

Please sign in to comment.